diff --git a/config/config_defaults.go b/config/config_defaults.go index 960b138ab..a817076b0 100755 --- a/config/config_defaults.go +++ b/config/config_defaults.go @@ -568,7 +568,7 @@ const CGRATES_CFG_JSON = ` "attributes": { // AttributeS config "enabled": false, // starts attribute service: . - "indexed_selects":true, // enable profile matching exclusively on indexes + "indexed_selects": true, // enable profile matching exclusively on indexes //"string_indexed_fields": [], // query indexes based on these fields for faster processing "prefix_indexed_fields": [], // query indexes based on these fields for faster processing "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level) @@ -579,7 +579,7 @@ const CGRATES_CFG_JSON = ` "chargers": { // ChargerS config "enabled": false, // starts charger service: . "attributes_conns": [], // connections to AttributeS for event fields altering <""|127.0.0.1:2013> - "indexed_selects":true, // enable profile matching exclusively on indexes + "indexed_selects": true, // enable profile matching exclusively on indexes //"string_indexed_fields": [], // query indexes based on these fields for faster processing "prefix_indexed_fields": [], // query indexes based on these fields for faster processing "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level) @@ -590,7 +590,7 @@ const CGRATES_CFG_JSON = ` "enabled": false, // starts ResourceLimiter service: . "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur> "thresholds_conns": [], // connections to ThresholdS for resource reporting, empty to disable thresholds functionality: <""|*internal|$rpc_conns_id> - "indexed_selects":true, // enable profile matching exclusively on indexes + "indexed_selects": true, // enable profile matching exclusively on indexes //"string_indexed_fields": [], // query indexes based on these fields for faster processing "prefix_indexed_fields": [], // query indexes based on these fields for faster processing "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level) @@ -600,9 +600,9 @@ const CGRATES_CFG_JSON = ` "stats": { // StatS config "enabled": false, // starts Stat service: . "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur> - "store_uncompressed_limit": 0, // used to compress data + "store_uncompressed_limit": 0, // used to compress data "thresholds_conns": [], // connections to ThresholdS for StatUpdates, empty to disable thresholds functionality: <""|*internal|$rpc_conns_id> - "indexed_selects":true, // enable profile matching exclusively on indexes + "indexed_selects": true, // enable profile matching exclusively on indexes //"string_indexed_fields": [], // query indexes based on these fields for faster processing "prefix_indexed_fields": [], // query indexes based on these fields for faster processing "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level) @@ -612,7 +612,7 @@ const CGRATES_CFG_JSON = ` "thresholds": { // ThresholdS "enabled": false, // starts ThresholdS service: . "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur> - "indexed_selects":true, // enable profile matching exclusively on indexes + "indexed_selects": true, // enable profile matching exclusively on indexes //"string_indexed_fields": [], // query indexes based on these fields for faster processing "prefix_indexed_fields": [], // query indexes based on these fields for faster processing "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level) @@ -621,7 +621,7 @@ const CGRATES_CFG_JSON = ` "routes": { // RouteS config "enabled": false, // starts RouteS service: . - "indexed_selects":true, // enable profile matching exclusively on indexes + "indexed_selects": true, // enable profile matching exclusively on indexes //"string_indexed_fields": [], // query indexes based on these fields for faster processing "prefix_indexed_fields": [], // query indexes based on these fields for faster processing "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level) @@ -868,7 +868,7 @@ const CGRATES_CFG_JSON = ` "dispatchers":{ // DispatcherS config "enabled": false, // starts DispatcherS service: . - "indexed_selects":true, // enable profile matching exclusively on indexes + "indexed_selects": true, // enable profile matching exclusively on indexes //"string_indexed_fields": [], // query indexes based on these fields for faster processing "prefix_indexed_fields": [], // query indexes based on these fields for faster processing "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level) diff --git a/data/conf/samples/ees/cgrates.json b/data/conf/samples/ees/cgrates.json new file mode 100644 index 000000000..63676ed2c --- /dev/null +++ b/data/conf/samples/ees/cgrates.json @@ -0,0 +1,26 @@ +{ +// Sample CGRateS Configuration file for EEs +// +// Copyright (C) ITsysCOM GmbH + + + + +"attributes": { + "enabled": true, +}, + + +"ees": { + "enabled": true, + "attributes_conns":["*internal"], + "cache": { + "*file_csv": {"limit": -1, "ttl": "5s", "static_ttl": false}, + }, + "exporters": [ + ], +}, + + + +} diff --git a/servmanager/servmanager.go b/servmanager/servmanager.go index c4ec4bee7..fec0e5011 100644 --- a/servmanager/servmanager.go +++ b/servmanager/servmanager.go @@ -172,6 +172,7 @@ func (srvMngr *ServiceManager) StartServices() (err error) { utils.LoaderS: srvMngr.GetConfig().LoaderCfg().Enabled(), utils.AnalyzerS: srvMngr.GetConfig().AnalyzerSCfg().Enabled, utils.DispatcherS: srvMngr.GetConfig().DispatcherSCfg().Enabled, + utils.EventExporterS: srvMngr.GetConfig().EEsCfg().Enabled, } { if shouldRun { go srvMngr.startService(serviceName)