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

Exporter does not reconnect to database if docker-daemon has restarted #1084

Open
Nikolay-Ch opened this issue Nov 5, 2024 · 0 comments
Open

Comments

@Nikolay-Ch
Copy link

What did you do?
sudo systemctl restart docker

What did you expect to see?
In logs i see infinite messages: "Error opening connection to database...". And Prometheus say in their logs: "connection refused"

What did you see instead? Under which circumstances?
Exporter restarts connection to database and exports metrics. Or... metrics to Prometheus server continue to send.

Environment
Ubuntu 24.04

  • PostgreSQL version:
    17

  • Logs:

ts=2024-11-05T20:26:24.749Z caller=postgres_exporter.go:682 level=error err="Error opening connection to database (postgresql://prometheus:[email protected]:5432/postgres?sslmode=disable): pq: no pg_hba.conf entry for host \"aaa.bbb.ccc.ddd\", user \"user\", database \"postgres\", no encryption"
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

1 participant