Skip to content

Commit

Permalink
Fix for --all-dbs flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevan committed Jul 18, 2024
1 parent 48e85b0 commit 37d67d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func collectFromDB(connstr string, c *collector, o CollectConfig) {
}

func getDBNames(connstr string, o CollectConfig) (dbnames []string) {
db := getConn(connstr, o)
db := getConn(connstr + makeKV("dbname", "postgres"), o)
defer db.Close()

timeout := time.Duration(o.TimeoutSec) * time.Second
Expand Down

0 comments on commit 37d67d3

Please sign in to comment.