Skip to content

Commit

Permalink
feat(argo-workflows): Add honorLabels parameter to Argo Workflows Ser…
Browse files Browse the repository at this point in the history
…viceMonitor (#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>
  • Loading branch information
venegator and kiblik authored Sep 13, 2024
1 parent 7c8bbd6 commit e718e46
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/argo-workflows/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
1 change: 1 addition & 0 deletions charts/argo-workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
honorLabels: {{ .Values.controller.metricsConfig.honorLabels }}
{{- end }}
{{- if .Values.controller.telemetryConfig.enabled }}
- port: telemetry
Expand All @@ -37,6 +38,7 @@ spec:
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
honorLabels: {{ .Values.controller.metricsConfig.honorLabels }}
{{- end }}
{{- with .Values.controller.metricsConfig.targetLabels }}
targetLabels:
Expand Down
3 changes: 3 additions & 0 deletions charts/argo-workflows/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
Expand Down

0 comments on commit e718e46

Please sign in to comment.