diff --git a/cmd/postgres_exporter/postgres_exporter.go b/cmd/postgres_exporter/postgres_exporter.go index 36c524c8e..b4f5e6c4b 100644 --- a/cmd/postgres_exporter/postgres_exporter.go +++ b/cmd/postgres_exporter/postgres_exporter.go @@ -971,7 +971,7 @@ func NewServer(dsn string, opts ...ServerOpt) (*Server, error) { return nil, err } db.SetMaxOpenConns(1) - db.SetMaxIdleConns(1) + db.SetMaxIdleConns(-1) level.Info(logger).Log("msg", "Established new database connection", "fingerprint", fingerprint)