mirror of https://git.rancher.io/charts
fix serviceMonitor unknown field error
parent
114d0fdab8
commit
a893cae3bb
|
@ -14,13 +14,13 @@ spec:
|
|||
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||
insecureSkipVerify: true
|
||||
serverName: rancher
|
||||
{{ if .Values.global.cattle.clusterId }}
|
||||
metricRelabelings:
|
||||
- sourceLabels: [__address__]
|
||||
targetLabel: cluster_id
|
||||
replacement: {{ .Values.global.cattle.clusterId }}
|
||||
{{- end }}
|
||||
jobLabel: rancher
|
||||
{{ if .Values.global.cattle.clusterId }}
|
||||
metricRelabelings:
|
||||
- sourceLabels: [__address__]
|
||||
targetLabel: cluster_id
|
||||
replacement: {{ .Values.global.cattle.clusterId }}
|
||||
{{- end }}
|
||||
{{- if .Values.rancherMonitoring.namespaceSelector }}
|
||||
namespaceSelector: {{ .Values.rancherMonitoring.namespaceSelector | toYaml | nindent 4 }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in New Issue