Support configurable PodMonitor labels
Hoi CNPG team!
Could I request that you support adding labels to the PodMonitor in the cluster chart? My company only scrapes podMonitors that have a label for the team that deployed them, so right now, I can't get the podmonitor metrics if I use the one in this chart.
Something like this in the cluster chart's values.yaml would be great:
cluster:
monitoring:
enabled: true
podMonitor:
enabled: true
labels: {}
so that users can then do this:
cluster:
monitoring:
enabled: true
podMonitor:
enabled: true
labels:
team-name: team-we-love-cnpg
Thanks!
Hi, @jessebot. I'm Dosu, and I'm helping the charts team manage their backlog and am marking this issue as stale.
Issue Summary:
- You requested adding support for configurable labels on the PodMonitor in the cluster chart.
- The proposal includes a labels field in values.yaml to specify custom labels.
- The goal is to enable filtering PodMonitor metrics by team labels for team-specific scraping.
- There has been no further activity or comments on this issue.
Next Steps:
- Please let me know if this feature request is still relevant for the latest version of the charts by commenting on this issue.
- If I do not hear back within 7 days, I will automatically close this issue.
Thank you for your understanding and contribution!
I have created a PR to solve this issue. I am having trouble tracking the cluster in promethus.
Hi @Dashing-Nelson, thanks for the update and for creating a PR! @sxd, could you please assist with the Prometheus tracking issue mentioned in the PR?