Skip to content

Commit

Permalink
Apply templating to remote_read & remote_write config
Browse files Browse the repository at this point in the history
Signed-off-by: Garry O'Donnell <garry.o'[email protected]>
  • Loading branch information
garryod committed Sep 13, 2023
1 parent 0f018d1 commit bf81d3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: prometheus
appVersion: v2.47.0
version: 24.4.0
version: 25.0.0
kubeVersion: ">=1.19.0-0"
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
Expand Down
8 changes: 6 additions & 2 deletions charts/prometheus/templates/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ data:
{{ $root.Values.server.global | toYaml | trimSuffix "\n" | indent 6 }}
{{- if $root.Values.server.remoteWrite }}
remote_write:
{{ $root.Values.server.remoteWrite | toYaml | indent 4 }}
{{- range $root.Values.server.remoteWrite }}
{{- tpl . $root | toYaml | cat "-" | nindent 4 }}
{{- end }}
{{- end }}
{{- if $root.Values.server.remoteRead }}
remote_read:
{{ $root.Values.server.remoteRead | toYaml | indent 4 }}
{{- range $root.Values.server.remoteRead }}
{{- tpl . $root | toYaml | cat "-" | nindent 4 }}
{{- end }}
{{- end }}
{{- if or $root.Values.server.tsdb $root.Values.server.exemplars }}
storage:
Expand Down

0 comments on commit bf81d3a

Please sign in to comment.