Add option to specify job label for service monitor

This commit is contained in:
Muhammad Hamza Zaib 2021-03-10 10:51:55 +01:00
parent 559690f579
commit 9d9f10ce8b
2 changed files with 5 additions and 0 deletions

View file

@ -22,6 +22,9 @@ spec:
{{- if .Values.controller.metrics.serviceMonitor.metricRelabelings }}
metricRelabelings: {{ toYaml .Values.controller.metrics.serviceMonitor.metricRelabelings | nindent 8 }}
{{- end }}
{{- if .Values.controller.metrics.serviceMonitor.jobLabel }}
jobLabel: {{ .Values.controller.metrics.serviceMonitor.jobLabel | quote }}
{{- end }}
{{- if .Values.controller.metrics.serviceMonitor.namespaceSelector }}
namespaceSelector: {{ toYaml .Values.controller.metrics.serviceMonitor.namespaceSelector | nindent 4 }}
{{ else }}