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 -}}