commit | 0c2acb330ef389814ee731f5ecc176208934b274 | [log] [tgz] |
---|---|---|
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | Wed Feb 15 02:45:25 2023 +0000 |
committer | GitHub <noreply@github.com> | Wed Feb 15 02:45:25 2023 +0000 |
tree | fd28cb44a81519dabc7257423c3904c9df4d5aa0 | |
parent | 90b595e22e8d016eb615902d0db83f00341a074b [diff] |
Bump github.com/prometheus/client_golang from 1.11.0 to 1.11.1 Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.11.0 to 1.11.1. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.11.0...v1.11.1) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
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
In order to build the binary for the development docker compose setup you can use this command:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
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 |
In order to provide default prometheus constant labels you can use the DEFAULT_LABELS
enviroment variable. Labels can be set in this format instance=pg1 env=dev
. Provided labels will be added to all the metrics.