Service Monitor: Improve target labels.
This commit is contained in:
parent
fa7aeed7c0
commit
07ef900303
1 changed files with 2 additions and 5 deletions
|
@ -41,10 +41,7 @@ spec:
|
|||
- {{ include "ingress-nginx.namespace" . }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.metrics.serviceMonitor.targetLabels }}
|
||||
targetLabels:
|
||||
{{- range .Values.controller.metrics.serviceMonitor.targetLabels }}
|
||||
- {{ . }}
|
||||
{{- end }}
|
||||
targetLabels: {{ toYaml .Values.controller.metrics.serviceMonitor.targetLabels | nindent 2 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
|
|
Loading…
Reference in a new issue