mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-28 14:08:15 +00:00
PMM-7958 no idle conns in monitoring (#90)
This commit is contained in:
parent
e02ea57b91
commit
8140ab3e39
@ -69,7 +69,7 @@ func NewServer(dsn string, opts ...ServerOpt) (*Server, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
db.SetMaxOpenConns(1)
|
db.SetMaxOpenConns(1)
|
||||||
db.SetMaxIdleConns(1)
|
db.SetMaxIdleConns(0)
|
||||||
|
|
||||||
level.Info(logger).Log("msg", "Established new database connection", "fingerprint", fingerprint)
|
level.Info(logger).Log("msg", "Established new database connection", "fingerprint", fingerprint)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user