prometheus-community / postgres_exporter

A PostgreSQL metric exporter for Prometheus
Apache License 2.0
2.83k stars 745 forks source link

How to discover the databases on a server dynamically, now that `auto-discover-databases` is DEPRECARED? #1068

Open CiucurDaniel opened 2 months ago

CiucurDaniel commented 2 months ago

As the auto-discover-databases parameter is now deprecated, what is the expected way to configure the exporter to collect metrics for all databases from a server?

(DEPRECATED) Whether to discover the databases on a server dynamically. Default is false

I have searched for this for quite a while and I do not find any example on how this is supposed to be done now. It would be great to have such an example because at the moment we only get informed that this paramater has been deprecated but have been provided not clear guide on how to adjust.