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
Should we just change this for the stats reported by the PgBouncer-compatible interface?
I'm guessing people using the Prometheus metrics endpoint would already be happy with the current units. Either way, we should probably mention the units in the help text there.
Describe the bug
PgBouncer reports
*_time
metrics inSHOW STATS
in microseconds. PgCat reports the same metrics in milliseconds.https://github.com/postgresml/pgcat/tree/main#statistics-reporting says:
So I'd expect the units to be the same too.
PgBouncer source here: https://github.com/pgbouncer/pgbouncer/blob/e2a2a682fe9069366fca970ec2492d774b4f6b40/src/server.c#L556-L559
To Reproduce
Steps to reproduce the behavior:
SELECT pg_sleep(1);
via both connection poolers.SHOW STATS;
in both connection poolers.PgBouncer will give something like:
Whereas PgCat says:
(
xact_time
metrics are already reported missing in #114.)The text was updated successfully, but these errors were encountered: