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

metrics.extraMetricRelabelingRules doesn't work anymore #1064

Closed
jkleinlercher opened this issue Jan 8, 2025 · 1 comment · Fixed by #1068
Closed

metrics.extraMetricRelabelingRules doesn't work anymore #1064

jkleinlercher opened this issue Jan 8, 2025 · 1 comment · Fixed by #1068

Comments

@jkleinlercher
Copy link

jkleinlercher commented Jan 8, 2025

After the changes in #992 in line

{{- if or $metricAllowList $metricDenyList .Values.metrics.podMonitors.extraMetricProcessingRules }}
the condition for

  • .Values.metrics.extraMetricRelabelingRules
  • .Values.metrics.podMonitors.extraMetricRelabelingRules

is missing. Therefore this values have no effect anymore, because the needed prometheus.relabel "podmonitors" doesn't get created anymore.

metrics:
  extraMetricRelabelingRules: |-
    rule {
        source_labels = ["namespace"]
        regex = "^kube-system$"
        action = "drop"
    }

I also recognized that the value extraMetricProcessingRules is not documented and used anywhere in the v1 chart, so maybe this condition is just a copy-paste-error from the v2 chart?

The same is true for the conditions for probes and servicemonitors

@petewall
Copy link
Collaborator

petewall commented Jan 8, 2025

Absolutely, a copy-paste error. I'll fix right away!

@petewall petewall linked a pull request Jan 8, 2025 that will close this issue
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 a pull request may close this issue.

2 participants