prometheus-pgbouncer-exporter is incompatible with pgbouncer (Remove from mantic/SRU)

Bug #1887656 reported by Juan Felipe García Catalán
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
prometheus-pgbouncer-exporter (Debian)
New
Unknown
prometheus-pgbouncer-exporter (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Remove from mantic as it is unmaintained and broken, potentially SRU LTS.

[Original bug report]
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/collectors.py with, for example total_query_count

A better solution would be replacing the exporter with one with proper suppport for different pgbouncer versions like https://github.com/spreaker/prometheus-pgbouncer-exporter

Tags: patch
Revision history for this message
Joi Owen (jlellis) wrote :

I second the motion. The sources this package is built from have not been updated since 2016 and are no longer functional. This package needs to be removed if it can't be updated.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in prometheus-pgbouncer-exporter (Ubuntu):
status: New → Confirmed
Revision history for this message
Joi Owen (jlellis) wrote :

The Prometheus community has a much more current version written in GO. https://github.com/prometheus-community/pgbouncer_exporter

Revision history for this message
Joi Owen (jlellis) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-Correct-name-of-pgbouncer-metric.-Fixes-LP-1887656.patch" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Julian Andres Klode (juliank) wrote :

So I understand the package has not been maintained in 8 years or so, I'd favor removing it from the archive over fixing it. Then people can introduce the new pgbouncer exporter from the prometheus community

Changed in prometheus-pgbouncer-exporter (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Julian Andres Klode (juliank) wrote :

My concrete suggestion would be to

1. remove that from mantic as it is unmaintained
2. SRU the fix to 20.04 and 22.04 as it's already been shipped there

I'll subscribe ubuntu-archive to perform removal from mantic, and debdiffs for SRUs are welcome, please follow the process outlined in https://wiki.ubuntu.com/StableReleaseUpdates to submit a SRU debdiff and resubscribe ubuntu-sponsors when ready for review.

summary: - prometheus-pgbouncer-exporter is incompatible with pgbouncer
+ prometheus-pgbouncer-exporter is incompatible with pgbouncer (Remove
+ from mantic/SRU)
description: updated
Changed in prometheus-pgbouncer-exporter (Debian):
status: Unknown → New
Revision history for this message
Steve Langasek (vorlon) wrote :

Removing packages from mantic:
 prometheus-pgbouncer-exporter 1.7-2.1 in mantic
  prometheus-pgbouncer-exporter 1.7-2.1 in mantic amd64
  prometheus-pgbouncer-exporter 1.7-2.1 in mantic arm64
  prometheus-pgbouncer-exporter 1.7-2.1 in mantic armhf
  prometheus-pgbouncer-exporter 1.7-2.1 in mantic i386
  prometheus-pgbouncer-exporter 1.7-2.1 in mantic ppc64el
  prometheus-pgbouncer-exporter 1.7-2.1 in mantic riscv64
  prometheus-pgbouncer-exporter 1.7-2.1 in mantic s390x
Comment: Incompatible with current prometheus; removed from Debian testing; LP: #1887656
1 package successfully removed.

Changed in prometheus-pgbouncer-exporter (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.