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

Helm: Allow custom labels for servicemonitor #1483

Merged
merged 1 commit into from
Aug 28, 2023
Merged

Helm: Allow custom labels for servicemonitor #1483

merged 1 commit into from
Aug 28, 2023

Conversation

tyagian
Copy link
Contributor

@tyagian tyagian commented Aug 17, 2023

Servicemonitor require label additions based to match with prometheus labels for sending metrics.
So, when we enable servicemonitor https://github.com/fluxcd/flagger/blob/main/charts/flagger/values.yaml#L28
this MR will add labels added under servicemonitor.

serviceMonitor: enabled: true labels: prometheus: app

If Prometheus need labels to match in servicemonitor, this change is useful.

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

Please add the labels and namespace to values.yaml as comments and also to the chart readme.

@tyagian
Copy link
Contributor Author

tyagian commented Aug 27, 2023

@stefanprodan updated values.yaml and readme.md

@stefanprodan stefanprodan changed the title allow servicemonitor to add labels Helm: Allow custom labels for servicemonitor Aug 28, 2023
@aryan9600 aryan9600 merged commit e1c4257 into fluxcd:main Aug 28, 2023
17 checks passed
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