PgDog currently exposes the maxwait metric, which reports the maximum amount of time a client has waited for a connection from the pool.
While maxwait is useful for identifying individual periods of high connection wait time, it does not provide enough information to measure the overall impact of pool exhaustion over time.
Proposal
Add a new total_wait_time counter metric that tracks the cumulative connection wait time that could be used with rate() to calculate the amount of connection wait time accumulated over a given interval.
There are already similar metrics like total_query_time, total_connect_time
PgDog currently exposes the maxwait metric, which reports the maximum amount of time a client has waited for a connection from the pool.
While maxwait is useful for identifying individual periods of high connection wait time, it does not provide enough information to measure the overall impact of pool exhaustion over time.
Proposal
Add a new total_wait_time counter metric that tracks the cumulative connection wait time that could be used with rate() to calculate the amount of connection wait time accumulated over a given interval.
There are already similar metrics like total_query_time, total_connect_time