Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 57356ca

Browse files
rishat-ishbulatovtshcherban
authored andcommittedJan 19, 2023
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
 

‎cmd/postgres_exporter/server.go‎

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.