Service Monitor: Improve target labels.
This commit is contained in:
parent
1db669d86a
commit
0b55894dc1
1 changed files with 2 additions and 5 deletions
|
@ -40,12 +40,9 @@ spec:
|
||||||
matchNames:
|
matchNames:
|
||||||
- {{ 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:
|
||||||
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
|
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
|
||||||
|
|
Loading…
Reference in a new issue