spreaker / prometheus-pgbouncer-exporter

Prometheus exporter for PgBouncer
MIT License
104 stars 39 forks source link

Filter output of SHOW DATABASES on name field rather than database #56

Open FaHeymann opened 9 months ago

FaHeymann commented 9 months ago

Currently the output of SHOW DATABASES gets filtered on the database column which is the backend database and also what gets exporter as the backend_database label. I think it should rather filter on the name column to align with the other metrics. This is the field that gets exported as the database label.