Skip to content

Commit 0061e14

Browse files
enneitexDIVET Etienneyu-croco
authored
feat(argo-cd): Add honorLabels config for ServiceMonitor resources (#3018)
add honorLabels config for ServiceMonitor resources Signed-off-by: DIVET Etienne <[email protected]> Co-authored-by: DIVET Etienne <[email protected]> Co-authored-by: Aikawa <[email protected]>
1 parent 0f79d5a commit 0061e14

File tree

10 files changed

+30
-2
lines changed

10 files changed

+30
-2
lines changed

charts/argo-cd/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: v2.13.0
33
kubeVersion: ">=1.25.0-0"
44
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
55
name: argo-cd
6-
version: 7.7.0
6+
version: 7.7.1
77
home: https://github.com/argoproj/argo-helm
88
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
99
sources:
@@ -27,4 +27,4 @@ annotations:
2727
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
2828
artifacthub.io/changes: |
2929
- kind: changed
30-
description: Bump argo-cd to v2.13.0
30+
description: add honorLabels config for ServiceMonitor resources

charts/argo-cd/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,7 @@ NAME: my-release
834834
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
835835
| controller.metrics.serviceMonitor.annotations | object | `{}` | Prometheus ServiceMonitor annotations |
836836
| controller.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
837+
| controller.metrics.serviceMonitor.honorLabels | bool | `false` | When true, honorLabels preserves the metric’s labels when they collide with the target’s labels. |
837838
| controller.metrics.serviceMonitor.interval | string | `"30s"` | Prometheus ServiceMonitor interval |
838839
| controller.metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricRelabelConfigs] to apply to samples before ingestion |
839840
| controller.metrics.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
@@ -928,6 +929,7 @@ NAME: my-release
928929
| repoServer.metrics.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
929930
| repoServer.metrics.serviceMonitor.annotations | object | `{}` | Prometheus ServiceMonitor annotations |
930931
| repoServer.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
932+
| repoServer.metrics.serviceMonitor.honorLabels | bool | `false` | When true, honorLabels preserves the metric’s labels when they collide with the target’s labels. |
931933
| repoServer.metrics.serviceMonitor.interval | string | `"30s"` | Prometheus ServiceMonitor interval |
932934
| repoServer.metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricRelabelConfigs] to apply to samples before ingestion |
933935
| repoServer.metrics.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
@@ -1078,6 +1080,7 @@ NAME: my-release
10781080
| server.metrics.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
10791081
| server.metrics.serviceMonitor.annotations | object | `{}` | Prometheus ServiceMonitor annotations |
10801082
| server.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
1083+
| server.metrics.serviceMonitor.honorLabels | bool | `false` | When true, honorLabels preserves the metric’s labels when they collide with the target’s labels. |
10811084
| server.metrics.serviceMonitor.interval | string | `"30s"` | Prometheus ServiceMonitor interval |
10821085
| server.metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricRelabelConfigs] to apply to samples before ingestion |
10831086
| server.metrics.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
@@ -1189,6 +1192,7 @@ NAME: my-release
11891192
| dex.metrics.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
11901193
| dex.metrics.serviceMonitor.annotations | object | `{}` | Prometheus ServiceMonitor annotations |
11911194
| dex.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
1195+
| dex.metrics.serviceMonitor.honorLabels | bool | `false` | When true, honorLabels preserves the metric’s labels when they collide with the target’s labels. |
11921196
| dex.metrics.serviceMonitor.interval | string | `"30s"` | Prometheus ServiceMonitor interval |
11931197
| dex.metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricRelabelConfigs] to apply to samples before ingestion |
11941198
| dex.metrics.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
@@ -1291,6 +1295,7 @@ NAME: my-release
12911295
| redis.metrics.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
12921296
| redis.metrics.serviceMonitor.annotations | object | `{}` | Prometheus ServiceMonitor annotations |
12931297
| redis.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
1298+
| redis.metrics.serviceMonitor.honorLabels | bool | `false` | When true, honorLabels preserves the metric’s labels when they collide with the target’s labels. |
12941299
| redis.metrics.serviceMonitor.interval | string | `"30s"` | Interval at which metrics should be scraped |
12951300
| redis.metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricRelabelConfigs] to apply to samples before ingestion |
12961301
| redis.metrics.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
@@ -1483,6 +1488,7 @@ If you use an External Redis (See Option 3 above), this Job is not deployed.
14831488
| applicationSet.metrics.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
14841489
| applicationSet.metrics.serviceMonitor.annotations | object | `{}` | Prometheus ServiceMonitor annotations |
14851490
| applicationSet.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
1491+
| applicationSet.metrics.serviceMonitor.honorLabels | bool | `false` | When true, honorLabels preserves the metric’s labels when they collide with the target’s labels. |
14861492
| applicationSet.metrics.serviceMonitor.interval | string | `"30s"` | Prometheus ServiceMonitor interval |
14871493
| applicationSet.metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricRelabelConfigs] to apply to samples before ingestion |
14881494
| applicationSet.metrics.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
@@ -1570,6 +1576,7 @@ If you use an External Redis (See Option 3 above), this Job is not deployed.
15701576
| notifications.metrics.serviceMonitor.additionalLabels | object | `{}` | Prometheus ServiceMonitor labels |
15711577
| notifications.metrics.serviceMonitor.annotations | object | `{}` | Prometheus ServiceMonitor annotations |
15721578
| notifications.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
1579+
| notifications.metrics.serviceMonitor.honorLabels | bool | `false` | When true, honorLabels preserves the metric’s labels when they collide with the target’s labels. |
15731580
| notifications.metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricRelabelConfigs] to apply to samples before ingestion |
15741581
| notifications.metrics.serviceMonitor.relabelings | list | `[]` | Prometheus [RelabelConfigs] to apply to samples before scraping |
15751582
| notifications.metrics.serviceMonitor.scheme | string | `""` | Prometheus ServiceMonitor scheme |

charts/argo-cd/templates/argocd-application-controller/servicemonitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ spec:
3434
metricRelabelings:
3535
{{- toYaml . | nindent 8 }}
3636
{{- end }}
37+
honorLabels: {{ .Values.controller.metrics.serviceMonitor.honorLabels }}
3738
{{- with .Values.controller.metrics.serviceMonitor.scheme }}
3839
scheme: {{ . }}
3940
{{- end }}

charts/argo-cd/templates/argocd-applicationset/servicemonitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ spec:
3434
metricRelabelings:
3535
{{- toYaml . | nindent 8 }}
3636
{{- end }}
37+
honorLabels: {{ .Values.applicationSet.metrics.serviceMonitor.honorLabels }}
3738
{{- with .Values.applicationSet.metrics.serviceMonitor.scheme }}
3839
scheme: {{ . }}
3940
{{- end }}

charts/argo-cd/templates/argocd-notifications/servicemonitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
metricRelabelings:
4242
{{- toYaml . | nindent 8 }}
4343
{{- end }}
44+
honorLabels: {{ .Values.notifications.metrics.serviceMonitor.honorLabels }}
4445
namespaceSelector:
4546
matchNames:
4647
- {{ include "argo-cd.namespace" . }}

charts/argo-cd/templates/argocd-repo-server/servicemonitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ spec:
3535
{{- toYaml . | nindent 8 }}
3636
{{- end }}
3737
{{- with .Values.repoServer.metrics.serviceMonitor.scheme }}
38+
honorLabels: {{ .Values.repoServer.metrics.serviceMonitor.honorLabels }}
3839
scheme: {{ . }}
3940
{{- end }}
4041
{{- with .Values.repoServer.metrics.serviceMonitor.tlsConfig }}

charts/argo-cd/templates/argocd-server/servicemonitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ spec:
3434
metricRelabelings:
3535
{{- toYaml . | nindent 8 }}
3636
{{- end }}
37+
honorLabels: {{ .Values.server.metrics.serviceMonitor.honorLabels }}
3738
{{- with .Values.server.metrics.serviceMonitor.scheme }}
3839
scheme: {{ . }}
3940
{{- end }}

charts/argo-cd/templates/dex/servicemonitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ spec:
3131
metricRelabelings:
3232
{{- toYaml . |nindent 8 }}
3333
{{- end }}
34+
honorLabels: {{ .Values.dex.metrics.serviceMonitor.honorLabels }}
3435
{{- with .Values.dex.metrics.serviceMonitor.scheme }}
3536
scheme: {{ . }}
3637
{{- end }}

charts/argo-cd/templates/redis/servicemonitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ spec:
3232
metricRelabelings:
3333
{{- toYaml . | nindent 8 }}
3434
{{- end }}
35+
honorLabels: {{ .Values.redis.metrics.serviceMonitor.honorLabels }}
3536
{{- with .Values.redis.metrics.serviceMonitor.scheme }}
3637
scheme: {{ . }}
3738
{{- end }}

charts/argo-cd/values.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,8 @@ controller:
874874
enabled: false
875875
# -- Prometheus ServiceMonitor interval
876876
interval: 30s
877+
# -- When true, honorLabels preserves the metric’s labels when they collide with the target’s labels.
878+
honorLabels: false
877879
# -- Prometheus [RelabelConfigs] to apply to samples before scraping
878880
relabelings: []
879881
# -- Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
@@ -970,6 +972,8 @@ dex:
970972
enabled: false
971973
# -- Prometheus ServiceMonitor interval
972974
interval: 30s
975+
# -- When true, honorLabels preserves the metric’s labels when they collide with the target’s labels.
976+
honorLabels: false
973977
# -- Prometheus [RelabelConfigs] to apply to samples before scraping
974978
relabelings: []
975979
# -- Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
@@ -1529,6 +1533,8 @@ redis:
15291533
enabled: false
15301534
# -- Interval at which metrics should be scraped
15311535
interval: 30s
1536+
# -- When true, honorLabels preserves the metric’s labels when they collide with the target’s labels.
1537+
honorLabels: false
15321538
# -- Prometheus [RelabelConfigs] to apply to samples before scraping
15331539
relabelings: []
15341540
# -- Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
@@ -2164,6 +2170,8 @@ server:
21642170
interval: 30s
21652171
# -- Prometheus ServiceMonitor scrapeTimeout. If empty, Prometheus uses the global scrape timeout unless it is less than the target's scrape interval value in which the latter is used.
21662172
scrapeTimeout: ""
2173+
# -- When true, honorLabels preserves the metric’s labels when they collide with the target’s labels.
2174+
honorLabels: false
21672175
# -- Prometheus [RelabelConfigs] to apply to samples before scraping
21682176
relabelings: []
21692177
# -- Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
@@ -2739,6 +2747,8 @@ repoServer:
27392747
interval: 30s
27402748
# -- Prometheus ServiceMonitor scrapeTimeout. If empty, Prometheus uses the global scrape timeout unless it is less than the target's scrape interval value in which the latter is used.
27412749
scrapeTimeout: ""
2750+
# -- When true, honorLabels preserves the metric’s labels when they collide with the target’s labels.
2751+
honorLabels: false
27422752
# -- Prometheus [RelabelConfigs] to apply to samples before scraping
27432753
relabelings: []
27442754
# -- Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
@@ -2900,6 +2910,8 @@ applicationSet:
29002910
interval: 30s
29012911
# -- Prometheus ServiceMonitor scrapeTimeout. If empty, Prometheus uses the global scrape timeout unless it is less than the target's scrape interval value in which the latter is used.
29022912
scrapeTimeout: ""
2913+
# -- When true, honorLabels preserves the metric’s labels when they collide with the target’s labels.
2914+
honorLabels: false
29032915
# -- Prometheus [RelabelConfigs] to apply to samples before scraping
29042916
relabelings: []
29052917
# -- Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
@@ -3314,6 +3326,8 @@ notifications:
33143326
scheme: ""
33153327
# -- Prometheus ServiceMonitor tlsConfig
33163328
tlsConfig: {}
3329+
# -- When true, honorLabels preserves the metric’s labels when they collide with the target’s labels.
3330+
honorLabels: false
33173331
# -- Prometheus [RelabelConfigs] to apply to samples before scraping
33183332
relabelings: []
33193333
# -- Prometheus [MetricRelabelConfigs] to apply to samples before ingestion

0 commit comments

Comments
 (0)