From b35b94dda2631e9fb170570864ba5774f5acb4ea Mon Sep 17 00:00:00 2001 From: festeveira Date: Sun, 1 Dec 2024 18:17:18 +0000 Subject: [PATCH] Replace multipleTargets with multipleTarget Signed-off-by: festeveira --- .../templates/servicemonitor.yaml | 10 +++++----- charts/prometheus-postgres-exporter/values.yaml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/prometheus-postgres-exporter/templates/servicemonitor.yaml b/charts/prometheus-postgres-exporter/templates/servicemonitor.yaml index 94c661a40c43..87dcdb167ae8 100644 --- a/charts/prometheus-postgres-exporter/templates/servicemonitor.yaml +++ b/charts/prometheus-postgres-exporter/templates/servicemonitor.yaml @@ -12,9 +12,9 @@ metadata: namespace: {{ .Values.serviceMonitor.namespace }} {{- end }} spec: -{{- if .Values.serviceMonitor.multipleTargets.enabled }} +{{- if .Values.serviceMonitor.multipleTarget.enabled }} endpoints: - {{- range .Values.serviceMonitor.multipleTargets.targets }} + {{- range .Values.serviceMonitor.multipleTarget.targets }} - path: /probe port: {{ $.Values.service.name }} {{- if $.Values.serviceMonitor.interval }} @@ -48,16 +48,16 @@ spec: params: target: - {{ .endpoint }}:{{ .port | default 5432 }}/postgres - {{- if $.Values.serviceMonitor.multipleTargets.sharedAuthModule.enabled }} + {{- if $.Values.serviceMonitor.multipleTarget.sharedAuthModule.enabled }} auth_module: - - {{ $.Values.serviceMonitor.multipleTargets.sharedAuthModule.name }} + - {{ $.Values.serviceMonitor.multipleTarget.sharedAuthModule.name }} {{- else }} auth_module: - client.{{ .name }} {{- end }} {{- end }} {{- end }} -{{- if not .Values.serviceMonitor.multipleTargets.enabled -}} +{{- if not .Values.serviceMonitor.multipleTarget.enabled -}} endpoints: - port: {{ .Values.service.name }} {{- if .Values.serviceMonitor.interval }} diff --git a/charts/prometheus-postgres-exporter/values.yaml b/charts/prometheus-postgres-exporter/values.yaml index ef035b3a1eaa..c7ab1b7c4714 100644 --- a/charts/prometheus-postgres-exporter/values.yaml +++ b/charts/prometheus-postgres-exporter/values.yaml @@ -51,7 +51,7 @@ serviceMonitor: # tlsConfig: {} # Use multipleTarget mode - multipleTargets: + multipleTarget: enabled: false # Use the same auth module for every target # The config file should have a section like [$name]