feat(argo-workflows): Add honorLabels parameter to Argo Workflows ServiceMonitor (#2920)
* Update workflow-controller-servicemonitor.yaml Signed-off-by: venegator <m.venega94@gmail.com> * Update values.yaml Signed-off-by: venegator <m.venega94@gmail.com> * Update Chart.yaml Signed-off-by: venegator <m.venega94@gmail.com> * Update README.md Signed-off-by: venegator <m.venega94@gmail.com> * Update charts/argo-workflows/Chart.yaml Co-authored-by: kiblik <5609770+kiblik@users.noreply.github.com> Signed-off-by: venegator <m.venega94@gmail.com> * Update workflow-controller-servicemonitor.yaml Signed-off-by: venegator <m.venega94@gmail.com> --------- Signed-off-by: venegator <m.venega94@gmail.com> Co-authored-by: kiblik <5609770+kiblik@users.noreply.github.com>pull/2921/head argo-workflows-0.42.2
parent
7c8bbd62e8
commit
e718e46651
|
@ -3,7 +3,7 @@ appVersion: v3.5.10
|
|||
name: argo-workflows
|
||||
description: A Helm chart for Argo Workflows
|
||||
type: application
|
||||
version: 0.42.1
|
||||
version: 0.42.2
|
||||
icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png
|
||||
home: https://github.com/argoproj/argo-helm
|
||||
sources:
|
||||
|
@ -17,4 +17,4 @@ annotations:
|
|||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||
artifacthub.io/changes: |
|
||||
- kind: changed
|
||||
description: add loadBalancerClass field for Service resources
|
||||
description: add honorLabels config for ServiceMonitor resource
|
||||
|
|
|
@ -175,6 +175,7 @@ Fields to note:
|
|||
| controller.logging.level | string | `"info"` | Set the logging level (one of: `debug`, `info`, `warn`, `error`) |
|
||||
| controller.metricsConfig.enabled | bool | `false` | Enables prometheus metrics server |
|
||||
| controller.metricsConfig.headlessService | bool | `false` | Flag to enable headless service |
|
||||
| controller.metricsConfig.honorLabels | bool | `false` | When true, honorLabels preserves the metric’s labels when they collide with the target’s labels. |
|
||||
| controller.metricsConfig.ignoreErrors | bool | `false` | Flag that instructs prometheus to ignore metric emission errors. |
|
||||
| controller.metricsConfig.metricRelabelings | list | `[]` | ServiceMonitor metric relabel configs to apply to samples before ingestion |
|
||||
| controller.metricsConfig.metricsTTL | string | `""` | How often custom metrics are cleared from memory |
|
||||
|
|
|
@ -24,6 +24,7 @@ spec:
|
|||
metricRelabelings:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
honorLabels: {{ .Values.controller.metricsConfig.honorLabels }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.telemetryConfig.enabled }}
|
||||
- port: telemetry
|
||||
|
@ -37,6 +38,7 @@ spec:
|
|||
metricRelabelings:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
honorLabels: {{ .Values.controller.metricsConfig.honorLabels }}
|
||||
{{- end }}
|
||||
{{- with .Values.controller.metricsConfig.targetLabels }}
|
||||
targetLabels:
|
||||
|
|
|
@ -143,6 +143,9 @@ controller:
|
|||
servicePortName: metrics
|
||||
# -- Flag to enable headless service
|
||||
headlessService: false
|
||||
# -- When true, honorLabels preserves the metric’s labels when they collide with the target’s labels.
|
||||
## Ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#honorlabels
|
||||
honorLabels: false
|
||||
# -- ServiceMonitor relabel configs to apply to samples before scraping
|
||||
## Ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
|
||||
relabelings: []
|
||||
|
|
Loading…
Reference in New Issue