db-operator / charts

db-operator Helm charts repository
3 stars 2 forks source link

Set PG_EXPORTER_AUTO_DISCOVERY to true for the pg_exporter #23

Closed allanger closed 10 months ago

allanger commented 10 months ago

Since the monitoring is currently enabled on the dbin level, pg_exporter should be able to scrape metrics from all the databases on the instances.

pg_exporter documentation:

--auto-discovery or PG_EXPORTER_AUTO_DISCOVERY will automatically spawn peripheral servers for other databases in the target PostgreSQL server. except for those listed in --exclude-database. (Not implemented yet)

I guess that --exclude-database is not implemented, cause it's not that obvious after reading the readme, but I've tried setting this variable in the exporter deployment, and it seemed to work