commit | 160f5609160c00acd3ef8d442dc5a0fdf25b469f | [log] [tgz] |
---|---|---|
author | Juraj Bubniak <juraj.bubniak@gmail.com> | Tue Dec 31 08:34:05 2019 +0100 |
committer | GitHub <noreply@github.com> | Tue Dec 31 08:34:05 2019 +0100 |
tree | 15d37c6a425279b076db8fb4d82dd6221de00bce | |
parent | da785217cebab3624ebf5d429f06bf22d4bae890 [diff] | |
parent | 470d1d68952ede8d39e5dade5bae2b35df32aac0 [diff] |
Merge pull request #4 from jbub/const-metrics Refactor exporter to use NewConstMetric.
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 |