commit | af9089e9f69be7cc9b6eff928eac54c716defbbd | [log] [tgz] |
---|---|---|
author | Jarek Potiuk <jarek@potiuk.com> | Sat Sep 05 12:01:20 2020 +0200 |
committer | Jarek Potiuk <jarek@potiuk.com> | Sat Sep 05 12:08:39 2020 +0200 |
tree | 5c5d0dd3b2ea19b428df6885121386c29edfb443 | |
parent | 306a317ddacff2736bfc0d90a8e92f47ff551a88 [diff] |
Add Hadolint compatibility
Prometheus exporter for Pgbouncer metrics.
Metrics are by default exposed on http server running on port 9127
under the /metrics
path.
docker run \ --detach \ --env "DATABASE_URL=postgres://user:password@pgbouncer:6432/pgbouncer?sslmode=disable" \ --publish "9127:9127" \ --name "pgbouncer_exporter" \ jbub/pgbouncer_exporter
All of the collectors are enabled by default, you can control that using environment variables by settings it to true
or false
.
Name | Description | Env var | Default |
---|---|---|---|
stats | Per database requests stats. | EXPORT_STATS | Enabled |
pools | Per (database, user) connection stats. | EXPORT_POOLS | Enabled |
databases | List of configured databases. | EXPORT_DATABASES | Enabled |
lists | List of internal pgbouncer information. | EXPORT_LISTS | Enabled |