From 893da9be8dab40c5221024309aa267469b892cfa Mon Sep 17 00:00:00 2001 From: andronache Date: Mon, 10 May 2021 10:26:45 +0300 Subject: [PATCH] Changed opts for Event Exporter --- config/config_defaults.go | 4 ++-- data/conf/samples/ees/cgrates.json | 8 ++++---- utils/consts.go | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) 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"