fix: move metricRelabelings to correct section

Signed-off-by: Andreas Plesner <apj@mutt.dk>
This commit is contained in:
Andreas Plesner
2024-08-26 12:24:08 +02:00
parent 876b3f4068
commit b07803d8c6
@@ -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 -}}