commit | b3d00b563b5df3118b72ef157bea83ad73b4602e | [log] [tgz] |
---|---|---|
author | Jarek Potiuk <jarek@potiuk.com> | Sat Jul 04 11:48:16 2020 +0200 |
committer | Jarek Potiuk <jarek@potiuk.com> | Sat Jul 04 14:43:52 2020 +0200 |
tree | fc3ffc1e3ce96cac9764e23f1e7cb83798f35588 | |
parent | 160f5609160c00acd3ef8d442dc5a0fdf25b469f [diff] |
Airflow modifications of the pgbouncer-exporter Part of: https://github.com/apache/airflow/issues/9401
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 |