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

Pgbouncer exporter doesn't support metrics exposed by updated pgbouncer. #47295

Open
1 of 2 tasks
mjmammoth opened this issue Mar 3, 2025 · 1 comment
Open
1 of 2 tasks
Labels
area:helm-chart Airflow Helm Chart area:metrics good first issue kind:bug This is a clearly a bug

Comments

@mjmammoth
Copy link

Apache Airflow version

2.10.5

If "Other Airflow 2 version" selected, which one?

No response

What happened?

PGBouncer has been updated and now exposes more metrics than before - the exporter no longer supports the full list of metrics and the following error can be seen in the logs of the exporter:

could not get store result: could not get stats: unexpected column: total_server_assignment_count

The support has been added in upstream pg_exporter, supporting pgbouncer version 1.24 and up.

The pgbouncer base image was updated to 1.24 in the airflow-pgbouncer-2025.01.10-1.24.0 docker image, however the exporter has not been updated to support it.

The defaults for the helm chart are currently;

  pgbouncer:
    tag: airflow-pgbouncer-2025.01.10-1.24.0
  pgbouncerExporter:
    tag: airflow-pgbouncer-exporter-2024.06.18-0.17.0

Which are not compatible.

What you think should happen instead?

The exporter should be compatible with the version of pgbouncer deployed.

How to reproduce

Deploy the latest helm chart enabling pgbouncer, the logs for the metrics-exporter container in the pgbouncer pod will indicate the error

could not get store result: could not get stats: unexpected column: total_server_assignment_count

Operating System

Ubuntu 22.04

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

pgbouncer enabled

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@mjmammoth mjmammoth added area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels Mar 3, 2025
Copy link

boring-cyborg bot commented Mar 3, 2025

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

@dosubot dosubot bot added the area:helm-chart Airflow Helm Chart label Mar 3, 2025
@RNHTTR RNHTTR added area:metrics and removed area:helm-chart Airflow Helm Chart area:core needs-triage label for new issues that we didn't triage yet labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:helm-chart Airflow Helm Chart area:metrics good first issue kind:bug This is a clearly a bug
Projects
None yet
Development

No branches or pull requests

3 participants