mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-05-04 17:08:02 +00:00
Fix connection issue to multiple databases.
Co-Authored-By: Andrii Skomorokhov <andrii.skomorokhov@percona.com> Signed-off-by: Denys Kondratenko <denys.kondratenko@percona.com>
This commit is contained in:
parent
075dc6d575
commit
1273715d11
@ -69,7 +69,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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user