feat!: add prepared statement metrics #194
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add the
client_parse_count
,server_parse_count
andbind_count
metrics, which were introduced in PgBouncer 1.24 with #1192.Please note that for collecting the data we switched from the
SHOW STATS
command to theSHOW STATS_TOTALS
command. This command does not calculate the averages on the PgBouncer side, which we do not use in the exporter anyways. Saving a few PgBouncer cpu ticks.This means the metric prefix
pgbouncer_stats_
has changed topgbouncer_stats_totals_
, e.g.pgbouncer_stats_received_bytes_total
is nowpgbouncer_stats_totals_received_bytes_total
.fixes #134
Tested with PgBouncer 1.20.1 and 1.24.0