{ // CGRateS Configuration file // "general": { "log_level": 7, }, "listen": { "rpc_json": ":2012", "rpc_gob": ":2013", "http": ":2080", }, "data_db": { // database used to store runtime data (eg: accounts, cdr stats) "db_type": "redis", // data_db type: "db_port": 6379, // data_db port to reach the database "db_name": "10", // data_db database name to connect to }, "stor_db": { "db_password": "CGRateS.org", }, "rals": { "enabled": true, "thresholds_conns": ["*internal"], }, "schedulers": { "enabled": true, "cdrs_conns": ["*internal"], }, "cdrs": { "enabled": true, "chargers_conns":["*internal"], }, "loaders": [ { "id": "TeoLoader", "enabled": false, "dry_run": false, "run_delay": "0", "lockfile_path": ".cgr.lock", "caches_conns": ["*internal"], "field_separator": ",", "tp_in_dir": "/tmp/In", "tp_out_dir": "/tmp/Out", "data":[ { "type": "*resources", "file_name": "Resources.csv", "fields": [ {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true}, {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true}, {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~2"}, {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~3"}, {"tag": "TTL", "path": "UsageTTL", "type": "*variable", "value": "~4"}, {"tag": "Limit", "path": "Limit", "type": "*variable", "value": "~5"}, {"tag": "AllocationMessage", "path": "AllocationMessage", "type": "*variable", "value": "~6"}, {"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~7"}, {"tag": "Stored", "path": "Stored", "type": "*variable", "value": "~8"}, {"tag": "ThresholdIDs", "path": "ThresholdIDs", "type": "*variable", "value": "~9"}, ], }, { "type": "*stats", "file_name": "Stats.csv", "fields": [ {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true}, {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true}, {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~2"}, {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~3"}, {"tag": "QueueLength", "path": "QueueLength", "type": "*variable", "value": "~4"}, {"tag": "TTL", "path": "TTL", "type": "*variable", "value": "~5"}, {"tag": "Metrics", "path": "Metrics", "type": "*variable", "value": "~6"}, {"tag": "MetricParams", "path": "Parameters", "type": "*variable", "value": "~7"}, {"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~8"}, {"tag": "Stored", "path": "Stored", "type": "*variable", "value": "~9"}, {"tag": "MinItems", "path": "MinItems", "type": "*variable", "value": "~10"}, {"tag": "ThresholdIDs", "path": "ThresholdIDs", "type": "*variable", "value": "~11"}, ], }, { "type": "*thresholds", "file_name": "Thresholds.csv", "fields": [ {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true}, {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true}, {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~2"}, {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~3"}, {"tag": "MaxHits", "path": "MaxHits", "type": "*variable", "value": "~4"}, {"tag": "MinHits", "path": "MinHits", "type": "*variable", "value": "~5"}, {"tag": "MinSleep", "path": "MinSleep", "type": "*variable", "value": "~6"}, {"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~7"}, {"tag": "ActionProfileIDs", "path": "ActionProfileIDs", "type": "*variable", "value": "~8"}, {"tag": "Async", "path": "Async", "type": "*variable", "value": "~9"}, ], }, { "type": "*routes", "file_name": "Routes.csv", "fields": [ {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true}, {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true}, {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~2"}, {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~3"}, {"tag": "Sorting", "path": "Sorting", "type": "*variable", "value": "~4"}, {"tag": "SortingParamameters", "path": "SortingParamameters", "type": "*variable", "value": "~5"}, {"tag": "SupplierID", "path": "SupplierID", "type": "*variable", "value": "~6"}, {"tag": "SupplierFilterIDs", "path": "SupplierFilterIDs", "type": "*variable", "value": "~7"}, {"tag": "SupplierAccountIDs", "path": "SupplierAccountIDs", "type": "*variable", "value": "~8"}, {"tag": "RouteRateProfileIDs", "path": "RouteRateProfileIDs", "type": "*variable", "value": "~9"}, {"tag": "SupplierResourceIDs", "path": "SupplierResourceIDs", "type": "*variable", "value": "~10"}, {"tag": "SupplierStatIDs", "path": "SupplierStatIDs", "type": "*variable", "value": "~11"}, {"tag": "SupplierWeight", "path": "SupplierWeight", "type": "*variable", "value": "~12"}, {"tag": "SupplierBlocker", "path": "SupplierBlocker", "type": "*variable", "value": "~13"}, {"tag": "SupplierParameters", "path": "SupplierParameters", "type": "*variable", "value": "~14"}, ], }, ], }, { "id": "FilterLoader", "enabled": false, "dry_run": false, "run_delay": "0", "lockfile_path": ".cgr.lock", "caches_conns": ["*internal"], "field_separator": ",", "tp_in_dir": "/tmp/FilterIn", "tp_out_dir": "/tmp/FilterOut", "data":[ { "type": "*filters", "file_name": "Filters.csv", "fields": [ {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true}, {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true}, {"tag": "Type", "path": "Type", "type": "*variable", "value": "~2"}, {"tag": "Element", "path": "Element", "type": "*variable", "value": "~3"}, {"tag": "Values", "path": "Values", "type": "*variable", "value": "~4"}, ], }, ], }, ], "attributes": { "enabled": true, }, "chargers": { "enabled": true, "attributes_conns": ["*internal"], }, "resources": { "enabled": true, "store_interval": "1s", "thresholds_conns": ["*internal"], }, "stats": { "enabled": true, "store_interval": "1s", "thresholds_conns": ["*internal"], }, "thresholds": { "enabled": true, "store_interval": "1s", }, "routes": { "enabled": true, "prefix_indexed_fields":["*req.Destination"], "stats_conns": ["*internal"], }, "sessions": { "enabled": true, "routes_conns": ["*internal"], "resources_conns": ["*internal"], "attributes_conns": ["*internal"], "rals_conns": ["*internal"], "cdrs_conns": ["*internal"], "chargers_conns": ["*internal"], }, "migrator":{ "out_stordb_password": "CGRateS.org", "users_filters":["Account"], }, "admins": { "enabled": true,"enabled": true, "scheduler_conns": ["*internal"], }, "filters": { "accounts_conns": ["*internal"], }, "accounts": { "enabled": true }, }