From b07803d8c6dd8c41fa3bc982990ccfacd1e44d28 Mon Sep 17 00:00:00 2001 From: Andreas Plesner Date: Mon, 26 Aug 2024 12:17:37 +0200 Subject: [PATCH] fix: move metricRelabelings to correct section Signed-off-by: Andreas Plesner --- charts/goldpinger/templates/servicemonitor.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/goldpinger/templates/servicemonitor.yaml b/charts/goldpinger/templates/servicemonitor.yaml index 5d8af50..6e2463e 100644 --- a/charts/goldpinger/templates/servicemonitor.yaml +++ b/charts/goldpinger/templates/servicemonitor.yaml @@ -18,6 +18,10 @@ spec: {{- if .Values.serviceMonitor.honorLabels }} honorLabels: true {{- end }} + {{- with .Values.serviceMonitor.metricRelabelings }} + metricRelabelings: + {{- toYaml . | nindent 8 }} + {{- end }} jobLabel: name namespaceSelector: matchNames: @@ -25,8 +29,4 @@ spec: selector: matchLabels: {{- include "goldpinger.selectorLabels" . | nindent 6 }} - {{- with .Values.serviceMonitor.metricRelabelings }} - metricRelabelings: - {{- toYaml . | nindent 4 }} - {{- end }} {{- end -}}