diff options
-rwxr-xr-x | check_postgres.pl | 59 |
1 files changed, 19 insertions, 40 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index d003c9ed1..0b17a87e6 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -8091,59 +8091,38 @@ For MRTG output, returns a 1 or 0 indicating success of failure of the checksum checksum must be provided as the C<--mrtg> argument. The fourth line always gives the current checksum. -=head2 B<pgbouncer pool checks> +=head2 B<pgb_pool_cl_active> -=over 4 - -=item pgb_pool_cl_active - -(C<symlink:check_postgres_pgb_pool_cl_active>) Connections from clients that -are currently associated with a connection to the database - -=item pgb_pool_cl_waiting - -(C<symlink:check_postgres_pgb_pool_cl_waiting>) Connections from clients that are -waiting for a database connection - -=item pgb_pool_sv_active +=head2 B<pgb_pool_cl_waiting> -(C<symlink:check_postgres_pgb_pool_sv_active>) PostgreSQL connections currently -associated with a client +=head2 B<pgb_pool_sv_active> -=item pgb_pool_sv_idle +=head2 B<pgb_pool_sv_idle> -(C<symlink:check_postgres_pgb_pool_sv_idle>) PostgreSQL connections ready to be -associated with an incoming client +=head2 B<pgb_pool_sv_used> -=item pgb_pool_sv_used +=head2 B<pgb_pool_sv_tested> -(C<symlink:check_postgres_pgb_pool_sv_used>) PostgreSQL connections just -unlinked from a client and not yet returned to the idle pool +=head2 B<pgb_pool_sv_login> -=item pgb_pool_sv_tested +=head2 B<pgb_pool_maxwait> -(C<symlink:check_postgres_pgb_pool_sv_tested>) PostgreSQL connections currently -being tested - -=item pgb_pool_sv_login - -(C<symlink:check_postgres_pgb_pool_sv_login>) PostgreSQL connections currently -in the login process - -=item pgb_pool_maxwait - -(C<symlink:check_postgres_pgb_pool_maxwait>) Time in seconds that the oldest -client in the waiting pool has been waiting for a connection - -=back +(symlinks: C<check_postgres_pgb_pool_cl_active>, C<check_postgres_pgb_pool_cl_waiting>, +C<check_postgres_pgb_pool_sv_active>, C<check_postgres_pgb_pool_sv_idle>, +C<check_postgres_pgb_pool_sv_used>, C<check_postgres_pgb_pool_sv_tested>, +C<check_postgres_pgb_pool_sv_login>, and C<check_postgres_pgb_pool_maxwait>) Examines pgbouncer's pool statistics. Each pool has a set of "client" connections, referring to connections from external clients, and "server" connections, referring to connections to PostgreSQL itself. The related check_postgres actions are prefixed by "cl_" and "sv_", respectively. Active -client connections are those connections currently associated with an active -server connection. Client connections may also be "waiting", meaning they have -not yet been allocated a server connection. +client connections are those connections currently linked with an active server +connection. Client connections may also be "waiting", meaning they have not yet +been allocated a server connection. Server connections are "active" (linked to +a client), "idle" (standing by for a client connection to link with), "used" +(just unlinked from a client, and not yet returned to the idle pool), and +"login" (in the process of logging in). The maxwait value shows how long in +seconds the oldest waiting client connection has been waiting. =head2 B<prepared_txns> |