From 8d5bb4e87e7b8d7b9c6faf3284306dc94ba20597 Mon Sep 17 00:00:00 2001 From: Calvin Bui <3604363+calvinbui@users.noreply.github.com> Date: Thu, 28 May 2020 19:42:02 +1000 Subject: [PATCH] [stable/prometheus-redis-exporter] fix targetLabels (#22541) Signed-off-by: Calvin Bui <3604363+calvinbui@users.noreply.github.com> --- stable/prometheus-redis-exporter/Chart.yaml | 2 +- stable/prometheus-redis-exporter/templates/servicemonitor.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/prometheus-redis-exporter/Chart.yaml b/stable/prometheus-redis-exporter/Chart.yaml index d64d835ac8..7d5177454b 100644 --- a/stable/prometheus-redis-exporter/Chart.yaml +++ b/stable/prometheus-redis-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.3.4 description: Prometheus exporter for Redis metrics name: prometheus-redis-exporter -version: 3.4.0 +version: 3.4.1 home: https://github.com/oliver006/redis_exporter sources: - https://github.com/oliver006/redis_exporter diff --git a/stable/prometheus-redis-exporter/templates/servicemonitor.yaml b/stable/prometheus-redis-exporter/templates/servicemonitor.yaml index b41fd6cb17..e8957053e0 100644 --- a/stable/prometheus-redis-exporter/templates/servicemonitor.yaml +++ b/stable/prometheus-redis-exporter/templates/servicemonitor.yaml @@ -32,8 +32,8 @@ spec: app: {{ template "prometheus-redis-exporter.name" . }} release: {{ .Release.Name }} {{- if .Values.serviceMonitor.targetLabels }} + targetLabels: {{- range .Values.serviceMonitor.targetLabels }} - targetLabels: - {{ . }} {{- end }} {{- end }}