-
Notifications
You must be signed in to change notification settings - Fork 5k
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] Implement multiple target with /probe … #5012
base: main
Are you sure you want to change the base?
[prometheus-postgres-exporter] Implement multiple target with /probe … #5012
Conversation
…endpoint Signed-off-by: festeveira <f.esteveira@hotmail.com>
Signed-off-by: Francisco Esteveira <56481538+festeveira@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @festeveira, for your PR. Please, see my comments below.
targets: [] | ||
# - endpoint: | ||
# name: | ||
# port: default 5432 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add sample values in the comments, e.g.
targets: [] | |
# - endpoint: | |
# name: | |
# port: default 5432 | |
targets: [] | |
# - endpoint: pg01.local | |
# name: pg01 | |
# port: 5432 |
@@ -50,6 +50,22 @@ serviceMonitor: | |||
# TLS configuration to use when scraping the metric endpoint by Prometheus. | |||
# tlsConfig: {} | |||
|
|||
# Use multipleTarget mode | |||
multipleTargets: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to rename multipleTargets
to multipleTarget
as the latter is already used in a few charts in the repository.
multipleTargets: | |
multipleTarget: |
{{- end }} | ||
params: | ||
target: | ||
- {{ .endpoint }}:{{ .port | default 5432 }}/postgres |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure about the path /postgres
?
…endpoint
What this PR does / why we need it
This PR allows the user to use the multiple target support implemented by the exporter. It allows defining several postgres database targets, using the same or different auth modules.
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer
Checklist
[prometheus-couchdb-exporter]
)