mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
95 lines
1.8 KiB
JSON
95 lines
1.8 KiB
JSON
{
|
|
// CGRateS Configuration file
|
|
//
|
|
// Used in apier_local_tests
|
|
// Starts rater, cdrs and mediator connecting over internal channel
|
|
|
|
"general": {
|
|
"log_level": 7,
|
|
"node_id": "TestFailCDRS",
|
|
"poster_attempts": 1 // number of attempts before considering post request failed (eg: *http_post, CDR exports)
|
|
},
|
|
|
|
"stor_db": {
|
|
"db_type": "*internal", // stor database type to use: <mysql|postgres>
|
|
},
|
|
|
|
|
|
"rals": {
|
|
"enabled": true, // enable Rater service: <true|false>
|
|
"thresholds_conns": ["*localhost"],
|
|
},
|
|
|
|
"schedulers": {
|
|
"enabled": true,
|
|
},
|
|
|
|
"cdrs": {
|
|
"enabled": true,
|
|
"attributes_conns":["*internal"],
|
|
"chargers_conns":["*localhost"],
|
|
"rals_conns": ["*localhost"],
|
|
"stats_conns": ["*localhost"],
|
|
"thresholds_conns": ["*localhost"],
|
|
"online_cdr_exports": ["s3_test_file"],
|
|
"ees_conns": ["*localhost"]
|
|
},
|
|
|
|
"attributes": {
|
|
"enabled": true,
|
|
},
|
|
|
|
"stats": {
|
|
"enabled": true,
|
|
"store_interval": "1s",
|
|
"thresholds_conns": ["*internal"],
|
|
},
|
|
|
|
"thresholds": {
|
|
"enabled": true,
|
|
"store_interval": "1s",
|
|
},
|
|
|
|
"chargers": {
|
|
"enabled": true,
|
|
"attributes_conns": ["*internal"],
|
|
},
|
|
|
|
"apiers": {
|
|
"enabled": true,
|
|
"scheduler_conns": ["*internal"],
|
|
},
|
|
|
|
"ees": {
|
|
"enabled": true,
|
|
"attributes_conns": ["*internal"],
|
|
"failed_posts": {
|
|
"dir": "/tmp/failed_posts",
|
|
"ttl": "1s",
|
|
"static_ttl": false
|
|
},
|
|
"exporters": [
|
|
{
|
|
"id": "s3_test_file",
|
|
"type": "*s3_json_map",
|
|
// export_path for s3: "endpoint"
|
|
"export_path": "s3.us-east-2.amazonaws.com",
|
|
"opts": {
|
|
// posible options for s3:
|
|
"awsRegion": "eu-west-2",
|
|
"awsKey": "testkey",
|
|
"awsSecret": "testsecret",
|
|
"s3BucketID": "cgrates-cdrs",
|
|
// "awsToken": "sessionToken",
|
|
},
|
|
"attempts": 1,
|
|
"failed_posts_dir": "/tmp/failed_posts",
|
|
"fields":[
|
|
{"tag": "CGRID", "path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
|
],
|
|
},
|
|
]
|
|
},
|
|
|
|
}
|