Skip to content

Commit 57356ca

Browse files
rishat-ishbulatovtshcherban
authored andcommitted
Revert "PMM-7958 no idle conns in monitoring (#90)" (#94)
This reverts commit 8140ab3.
1 parent cbde0a5 commit 57356ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cmd/postgres_exporter/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func NewServer(dsn string, opts ...ServerOpt) (*Server, error) {
6969
return nil, err
7070
}
7171
db.SetMaxOpenConns(1)
72-
db.SetMaxIdleConns(0)
72+
db.SetMaxIdleConns(1)
7373

7474
level.Info(logger).Log("msg", "Established new database connection", "fingerprint", fingerprint)
7575

0 commit comments

Comments
 (0)