postgres_exporter/collector
Joe Adams 799f3e15b2 Fix exclude-databases for collector package
The pg_database collector was not respecting the --exclude-databases flag and causing problems where databases were not accessible. This now respects the list of databases to exclude.

- Adjusts the Collector create func to take a config struct instead of a logger. This allows more changes like this in the future. I figured we would need to do this at some point but I wasn't sure if we could hold off.
- Split the database size collection to a separate query when database is not excluded.
- Comment some probe code that was not useful/accurate

Signed-off-by: Joe Adams <github@joeadams.io>
2023-03-05 15:13:00 -05:00
..
collector.go Fix exclude-databases for collector package 2023-03-05 15:13:00 -05:00
pg_database.go Fix exclude-databases for collector package 2023-03-05 15:13:00 -05:00
pg_stat_bgwriter.go Fix exclude-databases for collector package 2023-03-05 15:13:00 -05:00
probe.go Fix exclude-databases for collector package 2023-03-05 15:13:00 -05:00
replication_slots.go fmt 2023-01-28 18:45:48 -05:00