Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: add prepared statement metrics #194

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sboschman
Copy link

Add the client_parse_count, server_parse_count and bind_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 the SHOW 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 to pgbouncer_stats_totals_, e.g. pgbouncer_stats_received_bytes_total is now pgbouncer_stats_totals_received_bytes_total.

fixes #134

Tested with PgBouncer 1.20.1 and 1.24.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please add new pgbouncer-v1.21.0 metrics related to prepared statements
1 participant