diff --git a/config/config_defaults.go b/config/config_defaults.go index b797e24ed..59af66b12 100644 --- a/config/config_defaults.go +++ b/config/config_defaults.go @@ -475,8 +475,8 @@ const CGRATES_CFG_JSON = ` // SQL // "sqlMaxIdleConns": 0, // SQLMaxIdleConns - // "maxOpenConns": 0, // SQLMaxOpenConns - // "maxConnLifetime": 0, // SQLMaxConnLifetime + // "sqlMaxOpenConns": 0, // SQLMaxOpenConns + // "sqlMaxConnLifetime": 0, // SQLMaxConnLifetime // "tableName":"cdrs", // the name of the table from where the events are exported diff --git a/data/conf/samples/ees/cgrates.json b/data/conf/samples/ees/cgrates.json index e9cf021c7..37d46354b 100644 --- a/data/conf/samples/ees/cgrates.json +++ b/data/conf/samples/ees/cgrates.json @@ -398,8 +398,8 @@ "tableName": "expTable", // tableName is mandatory in opts for sql exporter "sslmode": "disable", "sqlMaxIdleConns": "10", - "maxOpenConns": "100", - "maxConnLifetime": "0", + "sqlMaxOpenConns": "100", + "sqlMaxConnLifetime": "0", }, "fields":[ // in case that the path is *exp.*row user must complete all the fields one to one with his sql schema in the correct order {"tag": "CGRID", "path": "*exp.*row", "type": "*group", "value": "~*req.CGRID"}, @@ -419,8 +419,8 @@ "tableName": "expTable", "sslmode": "disable", "sqlMaxIdleConns": "10", - "maxOpenConns": "100", - "maxConnLifetime": "0", + "sqlMaxOpenConns": "100", + "sqlMaxConnLifetime": "0", }, "fields":[ // the path constains *exp.columnName {"tag": "CGRID", "path": "*exp.cgrid", "type": "*variable", "value": "~*req.CGRID"}, diff --git a/utils/consts.go b/utils/consts.go index 619fba549..a88852841 100644 --- a/utils/consts.go +++ b/utils/consts.go @@ -2466,8 +2466,8 @@ const ( ElsVersionType = "elsVersionType" ElsWaitForActiveShards = "elsWaitForActiveShards" // SQLEe options - SQLMaxOpenConns = "maxOpenConns" - SQLMaxConnLifetime = "maxConnLifetime" + SQLMaxOpenConns = "sqlMaxOpenConns" + SQLMaxConnLifetime = "sqlMaxConnLifetime" // Others OptsContext = "*context"