Skip to content

Connections leak in v0.14.0 #941

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

Closed
Monstrofil opened this issue Oct 25, 2023 · 2 comments
Closed

Connections leak in v0.14.0 #941

Monstrofil opened this issue Oct 25, 2023 · 2 comments

Comments

@Monstrofil
Copy link

Monstrofil commented Oct 25, 2023

What did you do?

I've added postgres_exporter container to my application as following:


  postgres_exporter:
    image: quay.io/prometheuscommunity/postgres-exporter:v0.14.0
    restart: unless-stopped
    environment:
      DATA_SOURCE_NAME: "postgresql://...@postgres:5432/...?sslmode=disable"
    ports:
      - 9187:9187

What did you expect to see?

I expected postgres_exporter to use only couple of connections with postgresql to grab statistics.

What did you see instead? Under which circumstances?

I see postgres_exporter contantly using more and more connections with each scrape.

Steps to reproduce

  • setup postgres and postgres_exporter containers
  • run ab -n 1000 -c 2 http://host:9187/metrics to speed up things a little
  • check pg_stat_database_numbackends metric, it will keep growing until reaches max_connections

We don't have this issue with v0.13.0, but we do have it with v0.14.0 and latest tags.

@SuperQ
Copy link
Contributor

SuperQ commented Oct 25, 2023

Duplicate of #921

@SuperQ SuperQ marked this as a duplicate of #921 Oct 25, 2023
@SuperQ SuperQ closed this as completed Oct 25, 2023
@SK-000
Copy link

SK-000 commented Jan 2, 2025

Connections leak in v0.14.0

Do we have any bug fix for this postgres exporter connection leaks ?

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

No branches or pull requests

3 participants