Category: Bash

Realtime monitoring of current PGbouncer pools stats

Hello, on some project i’m using PGbouncer for PostgreSQL connections pooling. So, that’s nice to have ability to get top style stats for connection in pool and real connection to server. Here is small single line bash script for monitoring:

Example: database | user | cl_active | cl_waiting | sv_active | sv_idle | sv_used […]

Read more