Skip to content

Commit f4cf2ac

Browse files
committed
Fix connection issue to multiple databases.
Signed-off-by: Andrii Skomorokhov <[email protected]>
1 parent 677d38b commit f4cf2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/postgres_exporter/postgres_exporter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ func NewServer(dsn string, opts ...ServerOpt) (*Server, error) {
971971
return nil, err
972972
}
973973
db.SetMaxOpenConns(1)
974-
db.SetMaxIdleConns(1)
974+
db.SetMaxIdleConns(-1)
975975

976976
level.Info(logger).Log("msg", "Established new database connection", "fingerprint", fingerprint)
977977

0 commit comments

Comments
 (0)