Add --exclude-databases option (#298)
* Add exclude-databases option * Update readme to explain --exclude-databases * Add comments to ExcludeDatabases function and unexport Contains function
This commit is contained in:
committed by
Will Rouesnel
parent
5f3a711ebd
commit
c768e64548
@@ -166,6 +166,8 @@ To scrape metrics from all databases on a database server, the database DSN's ca
|
||||
`--auto-discover-databases` flag. When true, `SELECT datname FROM pg_database` is run for all configured DSN's. From the
|
||||
result a new set of DSN's is created for which the metrics are scraped.
|
||||
|
||||
In addition, the option `--exclude-databases` adds the possibily to filter the result from the auto discovery to discard databases you do not need.
|
||||
|
||||
### Running as non-superuser
|
||||
|
||||
To be able to collect metrics from `pg_stat_activity` and `pg_stat_replication`
|
||||
|
||||
Reference in New Issue
Block a user