prometheus-community / prometheus-community/postgres_exporter
Metric still returned for excluded databases
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3.6k
- Forks
- 835
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 10
Description
See details here: https://github.com/prometheus-community/postgres_exporter/issues/713
Metric still returned for excluded databases:
http://172.22.22.15:9187/probe?target=tsdb:5432&auth_module=tsdb
...
pg_database_size_bytes{datname="postgres"} 1.641923363e+09
pg_database_size_bytes{datname="template0"} 8.602115e+06
pg_database_size_bytes{datname="template1"} 1.1125251e+07
...
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
Start by reviewing the linked issue #713 and reproducing the reported /probe endpoint with target=tsdb:5432 and auth_module=tsdb. Check why pg_database_size_bytes still includes postgres, template0, and template1 despite database exclusions; done means excluded databases no longer appear in the returned metrics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, postgresql
- Domain
- databases, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100