You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When listing data sources to scrape only specific databases on a single postgres server (I'd use autodiscovery, but that looks deprecated), the pg_stat_* metrics include all databases, with no way to exclude them besides modifying any relevant alerts etc.
What did you expect to see?
For pg_stat_* metrics, only metrics for databases we're explicitly scraping are considered
What did you see instead? Under which circumstances?
All databases are scraped. This is clearly visible from the code - there's no filtering being done:
What did you do?
When listing data sources to scrape only specific databases on a single postgres server (I'd use autodiscovery, but that looks deprecated), the
pg_stat_*
metrics include all databases, with no way to exclude them besides modifying any relevant alerts etc.What did you expect to see?
For
pg_stat_*
metrics, only metrics for databases we're explicitly scraping are consideredWhat did you see instead? Under which circumstances?
All databases are scraped. This is clearly visible from the code - there's no filtering being done:
postgres_exporter/collector/pg_stat_database.go
Lines 219 to 242 in 9cfa132
Environment
System information:
N/A
postgres_exporter version:
used via Grafana Agent, which seems to be v0.11.1
postgres_exporter flags:
N/A
PostgreSQL version:
15.5.0
The text was updated successfully, but these errors were encountered: