prometheus-community / postgres_exporter

A PostgreSQL metric exporter for Prometheus
Apache License 2.0
2.82k stars 743 forks source link

Cleanup database filter include/exclude flags #964

Open SuperQ opened 1 year ago

SuperQ commented 1 year ago

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.