Skip to content

Helm: Allow custom labels for servicemonitor#1483

Merged
aryan9600 merged 1 commit intofluxcd:mainfrom
tyagian:helm_chart_fix
Aug 28, 2023
Merged

Helm: Allow custom labels for servicemonitor#1483
aryan9600 merged 1 commit intofluxcd:mainfrom
tyagian:helm_chart_fix

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.

@tyagian tyagian requested a review from stefanprodan as a code owner August 17, 2023 21:53
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

Signed-off-by: Anuj Tyagi <tyagi.an@husky.neu.edu>
@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
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