Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prometheus-postgres-exporter] Use non default database in multi-targets #5069

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v0.16.0"
description: A Helm chart for prometheus postgres-exporter
name: prometheus-postgres-exporter
version: 6.7.1
version: 6.8.0
home: https://github.com/prometheus-community/postgres_exporter
sources:
- https://github.com/prometheus-community/postgres_exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ spec:
{{- end }}
params:
target:
{{- if .databaseName }}
- {{ .endpoint }}:{{ .port | default 5432 }}/{{ .databaseName | default "" }}
{{- else }}
- {{ .endpoint }}:{{ .port | default 5432 }}
{{- end }}
{{- if $.Values.serviceMonitor.multipleTarget.sharedAuthModule.enabled }}
auth_module:
- {{ $.Values.serviceMonitor.multipleTarget.sharedAuthModule.name }}
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-postgres-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ serviceMonitor:
# - endpoint: pg01.local
# name: pg01 (there needs to exist an authModule with key "client.pg01" if not using sharedAuthModule)
# port: default 5432
# databaseName: default '' (Set the database name to connect to)

prometheusRule:
enabled: false
Expand Down
Loading