Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (13 loc) · 1.35 KB

DOCKER-IMAGE.md

File metadata and controls

21 lines (13 loc) · 1.35 KB

This public image provides an easy way to run the prometheus-pgbouncer-exporter.

Basic configuration via environment variables

The image is shipped with a default config file which should be suitable to cover a basic usage. The default config file supports the following placeholders to be replaced via environment variables:

Environment variable Default value Description
PGBOUNCER_EXPORTER_HOST 127.0.0.1 Host on which the exporter should listen to
PGBOUNCER_EXPORTER_PORT 9127 Port on which the exporter should listen to
PGBOUNCER_HOST localhost Host of the backend pgbouncer to which the exporter should connect to
PGBOUNCER_PORT 6432 Port of the backend pgbouncer to which the exporter should connect to
PGBOUNCER_USER pgbouncer Username used to connect to pgbouncer
PGBOUNCER_PASS empty Password used to connect to pgbouncer

Providing a custom configuration file

If the default config file doesn't fit your use case, you can provide a custom one mounting it as a single-file to /etc/pgbouncer-exporter/config.yml.