spreaker / prometheus-pgbouncer-exporter

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

Would be great to add stats from "show lists". #10

Open freemanlutsk opened 5 years ago

freemanlutsk commented 5 years ago

Hi guys, thank you for you work! Is it possible to add metrics, something like that?

     list      | items
---------------+-------
 databases     |     4
 users         |     3
 pools         |     2
 free_clients  |   357
 used_clients  |   443
 login_clients |     0
 free_servers  |    18
 used_servers  |    32
 dns_names     |     1
 dns_zones     |     0
 dns_queries   |  -307
 dns_pending   |     0
(12 rows)
pracucci commented 5 years ago

Hi @freemanlutsk, do you mind give us a little bit of context on your use case about this data?

freemanlutsk commented 5 years ago

Hi @pracucci, Sorry, Actually I mean two metrics for create the alerts:

freemanlutsk commented 5 years ago

@pracucci by the way, I've created the dashboard, compatible with your exporter https://grafana.com/dashboards/9760