Skip to content

Add total_wait_time counter metric in addition to maxwait #1456

Description

@ilmarkerm

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThe issue is added to our backlog.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions