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

[prometheus] Add support for external_labels #3892

Closed
Prev Previous commit
Next Next commit
change external_labels -> externalLabels
Signed-off-by: Adam Chabin <[email protected]>
  • Loading branch information
adamchabin committed Oct 16, 2023
commit 9e93bf1360c13aa61a686437ca6502ea310bafa3
6 changes: 3 additions & 3 deletions charts/prometheus/templates/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ data:
{{- if eq $key "prometheus.yml" }}
global:
{{ $root.Values.server.global | toYaml | trimSuffix "\n" | indent 6 }}
{{- if $root.Values.server.external_labels }}
external_labels:
{{ $root.Values.server.external_labels | toYaml | indent 8 }}
{{- with $root.Values.server.externalLabels }}
external_labels: {{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if $root.Values.server.remoteWrite }}
remote_write:
Expand Down