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: