prometheus-community / prometheus-community/postgres_exporter
Cleanup database filter include/exclude flags
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3.6k
- Forks
- 835
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 10
Description
Proposal
Some collectors provide internal PostgreSQL stats about tables. Currently there are globally scoped flags for --include-databases and --exclude-databases.
These flags should be moved to the collector package and be scoped per collector. For example, --collector.database.include-databases and --collector.database.exclude-databases.
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 locating the current global --include-databases and --exclude-databases flag definitions and the collector package that handles PostgreSQL table stats. Trace how those flags reach collectors, then check existing tests or command-line entry points. Done means the flags are scoped per collector with the proposed names and the existing database filtering behavior remains covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, postgresql
- Domain
- cli, databases
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100