charts icon indicating copy to clipboard operation
charts copied to clipboard

Support configurable PodMonitor labels

Open jessebot opened this issue 8 months ago • 3 comments

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!

jessebot avatar Aug 13 '25 13:08 jessebot

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!

dosubot[bot] avatar Nov 12 '25 16:11 dosubot[bot]

I have created a PR to solve this issue. I am having trouble tracking the cluster in promethus.

Dashing-Nelson avatar Nov 13 '25 10:11 Dashing-Nelson

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?

dosubot[bot] avatar Nov 13 '25 10:11 dosubot[bot]