You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PgDog exposes query latency as total_query_time and avg_query_time. Both are means over a pool. As an on-call SRE I want to have percentiles available since averages alone tell you very little about worst-case performance about the distribution of request latencies.
I propose adding a per-pool histogram of individual query durations to OpenMetrics and OTLP, so histogram_quantile() works against PgDog's metrics:
histogram_quantile(0.99, sum by (le, database) (rate(pgdog_query_time_seconds_bucket[5m])))
PgDog exposes query latency as
total_query_timeandavg_query_time. Both are means over a pool. As an on-call SRE I want to have percentiles available since averages alone tell you very little about worst-case performance about the distribution of request latencies.I propose adding a per-pool histogram of individual query durations to OpenMetrics and OTLP, so
histogram_quantile()works against PgDog's metrics:Proposal
Status
I have this working on a branch rebased onto #1293 and I can open a PR for it.