Skip to content

Commit

Permalink
Also need to check for extraMetricRelabelingRules
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <[email protected]>
  • Loading branch information
petewall committed Jan 8, 2025
1 parent 3aade50 commit 7327213
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ prometheus.operator.podmonitors "pod_monitors" {
{{ .Values.metrics.podMonitors.extraRelabelingRules | indent 2 }}
{{- end }}

{{- if or $metricAllowList $metricDenyList .Values.metrics.podMonitors.extraMetricRelabelingRules }}
{{- if or $metricAllowList $metricDenyList .Values.metrics.extraMetricRelabelingRules .Values.metrics.podMonitors.extraMetricRelabelingRules }}
forward_to = [prometheus.relabel.podmonitors.receiver]
}

Expand Down Expand Up @@ -85,7 +85,7 @@ prometheus.operator.probes "probes" {
{{ .Values.metrics.probes.extraRelabelingRules | indent 2 }}
{{- end }}

{{- if or $metricAllowList $metricDenyList .Values.metrics.probes.extraMetricRelabelingRules }}
{{- if or $metricAllowList $metricDenyList .Values.metrics.extraMetricRelabelingRules .Values.metrics.probes.extraMetricRelabelingRules }}
forward_to = [prometheus.relabel.probes.receiver]
}

Expand Down Expand Up @@ -144,7 +144,7 @@ prometheus.operator.servicemonitors "service_monitors" {
{{ .Values.metrics.serviceMonitors.extraRelabelingRules | indent 2 }}
{{- end }}

{{- if or $metricAllowList $metricDenyList .Values.metrics.serviceMonitors.extraMetricRelabelingRules }}
{{- if or $metricAllowList $metricDenyList .Values.metrics.extraMetricRelabelingRules .Values.metrics.serviceMonitors.extraMetricRelabelingRules }}
forward_to = [prometheus.relabel.servicemonitors.receiver]
}

Expand Down

0 comments on commit 7327213

Please sign in to comment.