Skip to content

Commit 0dc52a4

Browse files
Merge pull request #232005 from varun-dhawan/varun-azure-docs-pr
[Azure-PG-Flex] updates the details for pgbouncer monitoring
2 parents fb33f67 + 469f51e commit 0dc52a4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

articles/postgresql/flexible-server/concepts-pgbouncer.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,24 @@ For more details on the PgBouncer configurations, please see [pgbouncer.ini](htt
4343
> [!Note]
4444
> Upgrading of PgBouncer is managed by Azure.
4545
46-
## Monitoring PgBouncer statistics
46+
## Monitoring PgBouncer
47+
48+
### PgBouncer Metrics
49+
50+
Azure Database for PostgreSQL - Flexible Server now provides six new metrics for monitoring PgBouncer connection pooling.
51+
52+
|Display Name |Metrics ID |Unit |Description |Dimension |Default enabled|
53+
|----------------------------------------|--------------------------|-----|-------------------------------------------------------------------------------------|------------|---------------|
54+
|**Active client connections** (Preview) |client_connections_active |Count|Connections from clients which are associated with a PostgreSQL connection |DatabaseName|No |
55+
|**Waiting client connections** (Preview)|client_connections_waiting|Count|Connections from clients that are waiting for a PostgreSQL connection to service them|DatabaseName|No |
56+
|**Active server connections** (Preview) |server_connections_active |Count|Connections to PostgreSQL that are in use by a client connection |DatabaseName|No |
57+
|**Idle server connections** (Preview) |server_connections_idle |Count|Connections to PostgreSQL that are idle, ready to service a new client connection |DatabaseName|No |
58+
|**Total pooled connections** (Preview) |total_pooled_connections |Count|Current number of pooled connections |DatabaseName|No |
59+
|**Number of connection pools** (Preview)|num_pools |Count|Total number of connection pools |DatabaseName|No |
60+
61+
To learn more, please refer [pgbouncer metrics](./concepts-monitoring.md#pgbouncer-metrics)
62+
63+
### Admin Console
4764

4865
PgBouncer also provides an **internal** database that you can connect to called `pgbouncer`. Once connected to the database you can execute `SHOW` commands that provide information on the current state of pgbouncer.
4966

0 commit comments

Comments
 (0)