prometheus-pgbouncer-exporter is incompatible with pgbouncer

Bug #1887656 reported by Juan Felipe García Catalán on 2020-07-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
prometheus-pgbouncer-exporter (Ubuntu)

Bug Description

Release: 20.04
prometheus-pgbouncer-exporter: 1.7-1

This pgbouncer exporter is incompatible with any pgbouncer version after 1.8. Ubuntu 20 installs 1.12.0 and the postgres repos 1.13.0

From version 1.8 pgbouncer stopped returning the "total_requests" field to the STATS command and the exporter fails when it can't find the obsolete field in the query results.

A temporary workaround is replacing the "total_requests" reference in /usr/lib/python3/dist-packages/prometheus_pgbouncer_exporter/ with, for example total_query_count

A better solution would be replacing the exporter with one with proper suppport for different pgbouncer versions like

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers