Misleading attribute names in PgBouncer metrics #83
Labels
bug
Categorizes issue or PR as related to a bug.
priority/backlog
Generalistic priority.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
I can not imagine a backwards compatible fix for this, but based on pgBouncer documentation maxwait field in pool stats contains values in seconds, however in nri-postgresql the field name is called maxwaitInMilliseconds.
nri-postgresql/src/metrics/pgbouncer_definitions.go
Line 50 in 1abf72c
From pgBouncer documentation:
As maxwait_us attribute is not used at the moment by New Relic, there is no way of monitoring sub-second wait time values for pgBouncer, although there is definitely a value in monitoring the trends.
In addition, there are other attribute names that are incorrectly named, as everything else pgBouncer related pointing to milliseconds actually contains microseconds, for example:
pgbouncer.stats.avgQueryDurationInMilliseconds
From pgBouncer documentation:
These issues however can be worked around at the moment by dividing the values by 1000. If there is no good way of fixing this, at least it should be pointed out in documentation.
PS: While at it, it would be useful if avg_wait_time stats would be sent as a metric, it is useful for monitoring in order to detect problems with connection pooling issues.
The text was updated successfully, but these errors were encountered: