Finished changing opts for Event Exporter

This commit is contained in:
andronache
2021-05-10 15:59:12 +03:00
committed by Dan Christian Bogos
parent ccf014451c
commit ade725f667
4 changed files with 28 additions and 29 deletions

View File

View File

@@ -428,15 +428,11 @@ const CGRATES_CFG_JSON = `
"type": "*none", // exporter type
"export_path": "/var/spool/cgrates/ees", // path where the exported events will be placed
"opts": {
// General
// "queueID": "cgrates_cdrs", // the queue id where events are exported
// CSV
// "csvFieldSeparator": ",", // separator used when reading the fields
// Elasticsearch options
// "elsIndex": "", // ElsIndex
// "elsIfPrimaryTerm": 0, // ElsIfPrimaryTerm
@@ -464,14 +460,17 @@ const CGRATES_CFG_JSON = `
// Kafka
// "kafkaTopic": "cgrates", // the topic from where the events are exported
// AMQP
// "amqpRoutingKey": "", // RoutingKey
// "sqlExchange": "", // Exchange
// "sqlExchangeType": "", // ExchangeType
// "amqpQueueID": "cgrates_cdrs", // the queue id for AMQP exporters from were the events are exported
// "amqpRoutingKey": "", // RoutingKey
// "sqlExchange": "", // Exchange
// "sqlExchangeType": "", // ExchangeType
// SQS and S3
// "sqsQueueID": "cgrates_cdrs", // the queue id for SQS exporters from were the events are exported
// "s3BucketID": "cgrates_cdrs", // the bucket id for S3 readers from where the events that are exported
// "awsRegion": "", // AWSRegion
// "awsKey": "", // AWSKey
// "awsSecret": "", // AWSSecret

View File

@@ -11,12 +11,12 @@
},
"data_db": {
"db_type": "*internal",
"db_type": "*internal"
},
"stor_db": {
"db_type": "*internal",
"db_type": "*internal"
},
@@ -26,13 +26,13 @@
"attributes": {
"enabled": true,
"enabled": true
},
"chargers": {
"enabled": true,
"attributes_conns": ["*internal"],
"attributes_conns": ["*internal"]
},
@@ -56,8 +56,8 @@
"tenant": "cgrates.org",
"attempts": 1,
"fields":[
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"},
],
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
]
},
{
"id": "amqp_localhost",
@@ -72,8 +72,8 @@
"tenant": "cgrates.org",
"attempts": 20,
"fields":[
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"},
],
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
]
},
{
"id": "aws_test_file",
@@ -85,8 +85,8 @@
"tenant": "cgrates.org",
"attempts": 1,
"fields":[
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"},
],
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
]
},
{
"id": "sqs_test_file",
@@ -103,21 +103,21 @@
"tenant": "cgrates.org",
"attempts": 1,
"fields":[
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"},
],
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
]
},
{
"id": "kafka_localhost",
"type": "*kafka_json_map",
"export_path": "127.0.0.1:9092",
"opts":{
"kafkaTopic": "cgrates_cdrs",
"kafkaTopic": "cgrates_cdrs"
},
"tenant": "cgrates.org",
"attempts": 10,
"fields":[
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"},
],
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
]
},
{
"id": "s3_test_file",
@@ -134,10 +134,10 @@
"tenant": "cgrates.org",
"attempts": 1,
"fields":[
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"},
],
},
],
{"tag": "RequiredTemplate","type": "*template", "value": "requiredFields"}
]
}
]
},

0
ers/s3_test.go Normal file
View File