-
Notifications
You must be signed in to change notification settings - Fork 4
Add prometheus selector labels to serviceMonitors #2067
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
base: main
Are you sure you want to change the base?
Conversation
DeeAjayi
commented
Nov 5, 2025
- Adds an option to specify prometheus selectorLabels on the global, resource and object level
- added serviceMonitor level labels
Signed-off-by: DeeAjayi <[email protected]>
|
This PR will be automatically closed as it has been stale for 4 days. Please comment if you feel this is still relevant. |
| Service Monitor Labels | ||
| */}} | ||
| {{- define "serviceMonitors.labels"}} | ||
| {{- $mergedLabels := mergeOverwrite (include "global.labels" . | fromYaml) .Values.serviceMonitors.labels }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use a deepCopy function here. Also fromYaml shouldn't be required
dunefro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic of merge is not very clean. We should use deepCopy and avoid unnecessary conversions to dict and yaml
|
This PR will be automatically closed as it has been stale for 4 days. Please comment if you feel this is still relevant. |