Skip to content

Commit

Permalink
Fix connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
camdencheek committed Jul 18, 2019
1 parent 5c149e0 commit 36dd2c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/oracledb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -53,7 +53,6 @@ func main() {
err = parseTablespaceWhitelist()
exitOnErr(err)

log.Error(getConnectionString())
db, err := sql.Open("goracle", getConnectionString())
exitOnErr(err)
db.SetMaxIdleConns(10)
Expand Down

0 comments on commit 36dd2c8

Please sign in to comment.