prometheus-community / prometheus-community/postgres_exporter

Metric still returned for excluded databases

Open
#714 0 comments 1 reaction 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

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.