prometheus-community / prometheus-community/postgres_exporter
one exporter monitor multi pg instance but just return one pg_up metric
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3.6k
- Forks
- 835
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 10
Description
hi,
i run exporter in docker,with DATA_SOURCE_NAME=
postgresql://user:password@postgres-single.postgresql:5432/postgres?sslmode=disable,postgresql://user:password@postgres-single-2.postgresql:5432/postgres?sslmode=disable
but the exporter just return one "pg_up{} 1" metric
exception is:
pg_up{server:"postgres-single.postgresql:5432"} 1
pg_up{server:"postgres-single.postgresql-2:5432"} 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Docker setup using DATA_SOURCE_NAME with both PostgreSQL URLs and inspect the exporter’s multi-instance metric handling. Clarify whether the expected result is one pg_up series per server and compare it with the observed output; done means the behavior is reproducible and the intended per-instance result is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go, postgresql, prometheus
- Domain
- databases, devops, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100