feat(argo-cd): Add honorLabels config for ServiceMonitor resources (#3018)

add honorLabels config for ServiceMonitor resources

Signed-off-by: DIVET Etienne <etienne.divet@enedis.fr>
Co-authored-by: DIVET Etienne <etienne.divet@enedis.fr>
Co-authored-by: Aikawa <yu.croco@gmail.com>
This commit is contained in:
Etienne Divet 2024-11-10 02:42:00 +01:00 committed by GitHub
parent 0f79d5af86
commit 0061e14563
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 30 additions and 2 deletions

View file

@ -34,6 +34,7 @@ spec:
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
honorLabels: {{ .Values.controller.metrics.serviceMonitor.honorLabels }}
{{- with .Values.controller.metrics.serviceMonitor.scheme }}
scheme: {{ . }}
{{- end }}

View file

@ -34,6 +34,7 @@ spec:
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
honorLabels: {{ .Values.applicationSet.metrics.serviceMonitor.honorLabels }}
{{- with .Values.applicationSet.metrics.serviceMonitor.scheme }}
scheme: {{ . }}
{{- end }}

View file

@ -41,6 +41,7 @@ spec:
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
honorLabels: {{ .Values.notifications.metrics.serviceMonitor.honorLabels }}
namespaceSelector:
matchNames:
- {{ include "argo-cd.namespace" . }}

View file

@ -35,6 +35,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.repoServer.metrics.serviceMonitor.scheme }}
honorLabels: {{ .Values.repoServer.metrics.serviceMonitor.honorLabels }}
scheme: {{ . }}
{{- end }}
{{- with .Values.repoServer.metrics.serviceMonitor.tlsConfig }}

View file

@ -34,6 +34,7 @@ spec:
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
honorLabels: {{ .Values.server.metrics.serviceMonitor.honorLabels }}
{{- with .Values.server.metrics.serviceMonitor.scheme }}
scheme: {{ . }}
{{- end }}

View file

@ -31,6 +31,7 @@ spec:
metricRelabelings:
{{- toYaml . |nindent 8 }}
{{- end }}
honorLabels: {{ .Values.dex.metrics.serviceMonitor.honorLabels }}
{{- with .Values.dex.metrics.serviceMonitor.scheme }}
scheme: {{ . }}
{{- end }}

View file

@ -32,6 +32,7 @@ spec:
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
honorLabels: {{ .Values.redis.metrics.serviceMonitor.honorLabels }}
{{- with .Values.redis.metrics.serviceMonitor.scheme }}
scheme: {{ . }}
{{- end }}