Skip to content

Commit

Permalink
Replace multipleTargets with multipleTarget
Browse files Browse the repository at this point in the history
Signed-off-by: festeveira <[email protected]>
  • Loading branch information
festeveira committed Dec 1, 2024
1 parent 65c0805 commit b35b94d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b35b94d

Please sign in to comment.