Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optionally servicemonitor service and object #1247

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Add optionally servicemonitor service and object #1247

merged 1 commit into from
Sep 1, 2023

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Aug 30, 2023

Build on the top of @k0da #1245
..

HOW TO RUN CI ---

By default, all the checks will be run automatically. Furthermore, when changing website-related stuff, the preview will be generated by the netlify bot.

Heavy tests

Add the heavy-tests label on this PR if you want full-blown tests that include more than 2-cluster scenarios.

Debug tests

If the test suite is failing for you, you may want to try triggering Re-run all jobs (top right) with debug logging enabled. It will also make the print debug action more verbose.

@kuritka kuritka changed the title Pr/1245 Add optionally servicemonitor service and object Aug 30, 2023
k0da
k0da previously approved these changes Aug 30, 2023
Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great overall, just one design comment

@@ -0,0 +1,16 @@
{{- if .Values.k8gb.serviceMonitor.enabled -}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might want to provider the ability to expose metrics with service without enabling ServiceMonitor below(not everybody are using prometheus operator, but still might want to scrape the metrics )

Copy link
Collaborator Author

@kuritka kuritka Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ytsarev , thx for comment. Something like this would make sense than:

{{- if or .Values.k8gb.exposeMetrics .Values.k8gb.serviceMonitor.enabled -}}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ytsarev @k0da - I added exposeMetrics property.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Signed-off-by: Dinar Valeev <[email protected]>

Signed-off-by: Michal Kuritka <[email protected]>
Copy link
Collaborator

@k0da k0da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

@kuritka kuritka merged commit 0399830 into master Sep 1, 2023
@kuritka kuritka deleted the pr/1245 branch September 1, 2023 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants