[dev-v2.10] Add metricRelabelings to rancher-istio ServiceMonitor

pull/4947/head
jsjolund 2025-01-09 14:09:11 +01:00
parent 2715fc3785
commit 3c7b50614c
2 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,10 @@ spec:
- sourceLabels: [__meta_kubernetes_pod_name]
action: replace
targetLabel: pod_name
{{- if .Values.kiali.serviceMonitor.metricRelabelings }}
metricRelabelings:
{{ toYaml .Values.kiali.serviceMonitor.metricRelabelings | indent 4 }}
{{- end }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor

View File

@ -105,6 +105,8 @@ kiali:
grafana:
in_cluster_url: "http://rancher-monitoring-grafana.cattle-monitoring-system.svc:80"
url: "http://rancher-monitoring-grafana.cattle-monitoring-system.svc:80"
serviceMonitor:
metricRelabelings: []
tracing:
enabled: false