From 5f8f315d6667faee32df01022d74a9e3f1fcafd3 Mon Sep 17 00:00:00 2001 From: venegator Date: Thu, 12 Sep 2024 16:39:26 +0200 Subject: [PATCH] Update workflow-controller-servicemonitor.yaml Signed-off-by: venegator --- .../controller/workflow-controller-servicemonitor.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/argo-workflows/templates/controller/workflow-controller-servicemonitor.yaml b/charts/argo-workflows/templates/controller/workflow-controller-servicemonitor.yaml index 1695f96d..bdda4bd0 100644 --- a/charts/argo-workflows/templates/controller/workflow-controller-servicemonitor.yaml +++ b/charts/argo-workflows/templates/controller/workflow-controller-servicemonitor.yaml @@ -24,6 +24,9 @@ spec: metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.controller.metricsConfig.honorLabels }} + honorLabels: true + {{- end }} {{- end }} {{- if .Values.controller.telemetryConfig.enabled }} - port: telemetry @@ -37,6 +40,9 @@ spec: metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.controller.metricsConfig.honorLabels }} + honorLabels: true + {{- end }} {{- end }} {{- with .Values.controller.metricsConfig.targetLabels }} targetLabels: