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