From 36dd2c83fe54e58178ce65c3b42b2075dc358e0a Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Thu, 18 Jul 2019 14:23:50 -0400 Subject: [PATCH] Fix connection string --- src/oracledb.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/oracledb.go b/src/oracledb.go index 1144f23..4d07773 100644 --- a/src/oracledb.go +++ b/src/oracledb.go @@ -25,9 +25,9 @@ type argumentList struct { Tablespaces string `default:"" help:"JSON Array of Tablespaces to collect. If empty will collect all tablespaces."` Port string `default:"1521" help:"The OracleDB connection port"` ExtendedMetrics bool `default:"false" help:"Enable extended metrics"` - MinSessions int `default:10 help:"Maximum number of sessions opened by the integration"` - MaxSessions int `default:10 help:"Minimum number of sessions opened by the integration"` - PoolIncrement int `default:0 help:"How much to increment the pool size when the number of needed connections is exceeded"` + MinSessions int `default:"10" help:"Maximum number of sessions opened by the integration"` + MaxSessions int `default:"10" help:"Minimum number of sessions opened by the integration"` + PoolIncrement int `default:"0" help:"How much to increment the pool size when the number of needed connections is exceeded"` } const ( @@ -53,7 +53,6 @@ func main() { err = parseTablespaceWhitelist() exitOnErr(err) - log.Error(getConnectionString()) db, err := sql.Open("goracle", getConnectionString()) exitOnErr(err) db.SetMaxIdleConns(10)