Files
cgrates/data/conf/samples/mongoatlas/cgrates.json
2020-03-18 09:48:53 +01:00

163 lines
5.2 KiB
JSON
Executable File

{
// CGRateS Configuration file
"general": {
"log_level": 7,
"reply_timeout": "30s",
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080",
},
"data_db": {
"db_type": "mongo",
"db_host": "cgrates-shard-00-00-dbhlm.mongodb.net:27017,cgrates-shard-00-01-dbhlm.mongodb.net:27017,cgrates-shard-00-02-dbhlm.mongodb.net", // data_db host address
"db_port": 27017,
"db_name": "OnlineTarrifPlans?replicaSet=CGRateS-shard-0&authSource=admin&ssl=true",
"db_user": "CGRateS",
"db_password": "CGRateS.org",
},
"stor_db": {
"db_type": "mongo",
"db_host": "cgrates-shard-00-00-dbhlm.mongodb.net:27017,cgrates-shard-00-01-dbhlm.mongodb.net:27017,cgrates-shard-00-02-dbhlm.mongodb.net", // data_db host address
"db_port": 27017,
"db_name": "OfflineTarrifPlans?replicaSet=CGRateS-shard-0&authSource=admin&ssl=true",
"db_user": "CGRateS",
"db_password": "CGRateS.org",
},
"caches":{
"*destinations": {"limit": 10000, "ttl":"0s", "precache": true},
"*reverse_destinations": {"limit": 10000, "ttl":"0s", "precache": true},
"*rating_plans": {"limit": 10000, "ttl":"0s","precache": true},
"*rating_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
"*actions": {"limit": 10000, "ttl":"0s", "precache": true},
"*action_plans": {"limit": 10000, "ttl":"0s", "precache": true},
"*account_action_plans": {"limit": 10000, "ttl":"0s", "precache": true},
"*action_triggers": {"limit": 10000, "ttl":"0s", "precache": true},
"*shared_groups": {"limit": 10000, "ttl":"0s", "precache": true},
"*resource_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
"*resources": {"limit": 10000, "ttl":"0s", "precache": true},
"*statqueues": {"limit": 10000, "ttl":"0s", "precache": true},
"*statqueue_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
"*thresholds": {"limit": 10000, "ttl":"0s", "precache": true},
"*threshold_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
"*filters": {"limit": 10000, "ttl":"0s", "precache": true},
"*supplier_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
"*attribute_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
"*resource_filter_indexes" :{"limit": 10000, "ttl":"0s"},
"*stat_filter_indexes" : {"limit": 10000, "ttl":"0s"},
"*threshold_filter_indexes" : {"limit": 10000, "ttl":"0s"},
"*supplier_filter_indexes" : {"limit": 10000, "ttl":"0s"},
"*attribute_filter_indexes" : {"limit": 10000, "ttl":"0s"},
"*charger_filter_indexes" : {"limit": 10000, "ttl":"0s"},
},
"rals": {
"enabled": true,
"thresholds_conns": ["*internal"],
},
"schedulers": {
"enabled": true,
},
"cdrs": {
"enabled": true,
},
"cdre": {
"TestTutITExportCDR": {
"fields": [
{"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
{"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
{"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
{"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
{"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
{"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
{"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
{"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
{"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
{"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
{"path": "*exp.MatchedDestinationID", "type": "*variable", "value": "~*req.CostDetails:s/\"MatchedDestId\":.*_(\\w{4})/${1}/:s/\"MatchedDestId\":\"INTERNAL\"/ON010/"},
],
},
},
"resources": {
"enabled": true,
"store_interval": "1s",
"thresholds_conns": ["*internal"]
},
"stats": {
"enabled": true,
"store_interval": "1s",
"thresholds_conns": ["*internal"],
},
"thresholds": {
"enabled": true,
"store_interval": "1s",
},
"suppliers": {
"enabled": true,
},
"attributes": {
"enabled": true,
},
"sessions": {
"enabled": true,
"rals_conns": ["*internal"],
"cdrs_conns": ["*internal"],
"chargers_conns": ["*internal"],
},
"migrator": {
"out_datadb_type": "mongo",
"out_datadb_host": "cgrates-shard-00-00-dbhlm.mongodb.net:27017,cgrates-shard-00-01-dbhlm.mongodb.net:27017,cgrates-shard-00-02-dbhlm.mongodb.net",
"out_datadb_port": "27017",
"out_datadb_name": "OnlineTarrifPlans?replicaSet=CGRateS-shard-0&authSource=admin&ssl=true",
"out_datadb_user": "CGRateS",
"out_datadb_password":"CGRateS.org",
"out_stordb_type": "mongo",
"out_stordb_host": "cgrates-shard-00-00-dbhlm.mongodb.net:27017,cgrates-shard-00-01-dbhlm.mongodb.net:27017,cgrates-shard-00-02-dbhlm.mongodb.net",
"out_stordb_port": "27017",
"out_stordb_name": "OfflineTarrifPlans?replicaSet=CGRateS-shard-0&authSource=admin&ssl=true",
"out_stordb_user": "CGRateS",
"out_stordb_password": "CGRateS.org",
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
}