PgBouncer Metrics Exporter Configuration
The PgBouncer Metrics Exporter exposes metrics such as the number of active connections, connections waiting in queue, resource usage by PgBouncer, among others. These metrics help fine-tune pooling behavior and ensure the environment efficiently handles client requests.
This configuration allows defining the port used to expose PgBouncer metrics for Prometheus collection.
-
Observability components installed.
pgsmart obs exporter config [FLAGS]
Flags
-a, --agent=<agent>
=> Alias, hostname or IP of the server where the desired PgSmart Agent is installed.-h, --help
=> Help
Non-interactive execution is disabled for this operation.
pgsmart obs exporter config
PgBouncer Exporter Configuration
- Instructions
- Video
-
Select the
PgSmart Agent
or Register a new one. -
Select the
Exportador de Métricas PgBouncer
option. -
Add the connection pool management instance(s).
warningThis metrics exporter requires the previous configuration of the parameter
ignore_startup_parameters
with the valueextra_float_digits
for each PgBouncer instance.It is possible to perform this configuration directly through PgSmart, using the connection pool service configuration option.
This configuration is necessary for the connection driver to ignore certain parameters during connection initialization.
It is important to note that the PgBouncer metrics exporter will be configured by PgSmart regardless of this configuration. However, metrics will only be exported after the
ignore_startup_parameters
parameter is properly set.
3.1. Enter the connection management port for the connection pool.
3.2. Enter the user for managing the connection pools.
3.3. Enter the password for the user managing the connection pools.
3.4. Confirm whether you want to add another connection pool management instance.
3.5. Enter the metrics exposure port and web interface.

You can add as many instances as needed.
The exported metrics can be viewed via console:
curl http://192.168.56.234:9100/metrics
Or via web interface: