psycopg-pool-prometheus

Expose metrics maintained by psycopg3’s connection pool to prometheus.

Installation

python3 -m pip install psycopg-pool-prometheus

psycopg_pool_prometheus

Expose psycopg pool’s metrics to Prometheus.

psycopg_pool_prometheus.register(pool: psycopg_pool.pool.ConnectionPool | psycopg_pool.pool_async.AsyncConnectionPool) None

Register a posycopg_pool.Pool with prometheus_client.

Indices and tables