prometheus-community / prometheus-community/postgres_exporter

one exporter monitor multi pg instance but just return one pg_up metric

Open
#347 4 comments 3 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.