You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full error text is following: ts=2024-02-14T13:27:09.475Z caller=collector.go:138 level=error msg="error setting up DB connection" err="error pinging pgbouncer: dial tcp 127.0.0.1:5432: connect: connection refused"
PG bouncer Exporter container is configured like that:
Where PGBOUNCER_EXPORTER_CONNECTION_STRING is like that: postgres://user:password@db:5432/pgbouncer?sslmode=disable
As I understand pgbouncer for some reason is trying to connect on 127.0.0.1 even though it should connect to db through docker network. What should I do to fix that?
The text was updated successfully, but these errors were encountered:
I get a similar error, for example if pgbouncer_exporter is started before pgbouncer is up:
ts=2024-05-06T13:48:14.237Z caller=collector.go:142 level=error msg="error setting up DB connection" err="error pinging pgbouncer: dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory"
In my case I'm connecting using domain sockets. I'd expect pgbouncer_exporter to retry connecting a bit later, instead of exiting the process.
Full error text is following:
ts=2024-02-14T13:27:09.475Z caller=collector.go:138 level=error msg="error setting up DB connection" err="error pinging pgbouncer: dial tcp 127.0.0.1:5432: connect: connection refused"
PG bouncer Exporter container is configured like that:
Where PGBOUNCER_EXPORTER_CONNECTION_STRING is like that:
postgres://user:password@db:5432/pgbouncer?sslmode=disable
As I understand pgbouncer for some reason is trying to connect on 127.0.0.1 even though it should connect to db through docker network. What should I do to fix that?
The text was updated successfully, but these errors were encountered: