mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
Updated go-elasticsearch client
This commit is contained in:
committed by
Dan Christian Bogos
parent
2e96f02be4
commit
fcc9fc109b
@@ -388,6 +388,151 @@
|
||||
{"tag": "Cost", "path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost{*round:4}"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "ElasticsearchExporterCluster",
|
||||
"type": "*els",
|
||||
"export_path": "http://192.168.56.22:9200;http://192.168.56.64:9200",
|
||||
"attempts": 1,
|
||||
"opts": {
|
||||
"elsIndex": "cdrs",
|
||||
"elsDiscoverNodesOnStart":true,
|
||||
//"elsDiscoverNodesInterval":"10s",
|
||||
// "elsLogger":"elsJson",
|
||||
// "elsEnableDebugLogger":false,
|
||||
// "elsCompressRequestBody":false,
|
||||
// "elsCompressRequestBodyLevel":0,
|
||||
// "elsRetryOnStatus":[],
|
||||
// "elsMaxRetries": 0,
|
||||
// "elsDisableRetry": false,
|
||||
|
||||
//"elsIfPrimaryTerm": 0,
|
||||
//"elsIfSeqNo": 0,
|
||||
"elsOpType": "",
|
||||
"elsPipeline": "",
|
||||
"require_alias": "",
|
||||
"elsRouting": "",
|
||||
"elsTimeout": "0",
|
||||
//"elsVersion": 0,
|
||||
"elsVersionType": "",
|
||||
"elsWaitForActiveShards": "",
|
||||
},
|
||||
"fields":[
|
||||
{"tag": "CGRID", "path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"tag": "RunID", "path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"tag": "ToR", "path": "*exp.ToR", "type": "*variable", "value": "~*req.ToR"},
|
||||
{"tag": "OriginID", "path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"tag": "RequestType", "path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"tag": "Tenant", "path": "*exp.Tenant", "type": "*variable", "value": "~*vars.*tenant"},
|
||||
{"tag": "Category", "path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"tag": "Subject", "path": "*exp.Subject", "type": "*variable", "value": "~*req.Subject"},
|
||||
{"tag": "Destination", "path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"tag": "@timestamp", "path": "*exp.@timestamp", "type": "*datetime", "value": "*now"},
|
||||
{"tag": "SetupTime", "path": "*exp.SetupTime", "type": "*variable", "value": "~*req.SetupTime"},
|
||||
{"tag": "AnswerTime", "path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime"},
|
||||
{"tag": "Usage", "path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"tag": "Cost", "path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost{*round:4}"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "ElasticsearchExporterCloud",
|
||||
"type": "*els",
|
||||
"export_path": "Deployment:dXMtY2VudHJh0YW==",
|
||||
"attempts": 1,
|
||||
"opts": {
|
||||
"elsIndex": "cdrs",
|
||||
"elsUsername":"elastic_user",
|
||||
"elsPassword":"",
|
||||
"elsCloud":true,
|
||||
//"elsApiKey":"aZmd2UQ==",
|
||||
// "elsLogger":"elsJson",
|
||||
// "elsEnableDebugLogger":false,
|
||||
// "elsCompressRequestBody":false,
|
||||
// "elsCompressRequestBodyLevel":0,
|
||||
// "elsRetryOnStatus":[],
|
||||
// "elsMaxRetries": 0,
|
||||
// "elsDisableRetry": false,
|
||||
|
||||
//"elsIfPrimaryTerm": 0,
|
||||
//"elsIfSeqNo": 0,
|
||||
"elsOpType": "",
|
||||
"elsPipeline": "",
|
||||
"require_alias": "",
|
||||
"elsRouting": "",
|
||||
"elsTimeout": "0",
|
||||
//"elsVersion": 0,
|
||||
"elsVersionType": "",
|
||||
"elsWaitForActiveShards": "",
|
||||
},
|
||||
"fields":[
|
||||
{"tag": "CGRID", "path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"tag": "RunID", "path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"tag": "ToR", "path": "*exp.ToR", "type": "*variable", "value": "~*req.ToR"},
|
||||
{"tag": "OriginID", "path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"tag": "RequestType", "path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"tag": "Tenant", "path": "*exp.Tenant", "type": "*variable", "value": "~*vars.*tenant"},
|
||||
{"tag": "Category", "path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"tag": "Subject", "path": "*exp.Subject", "type": "*variable", "value": "~*req.Subject"},
|
||||
{"tag": "Destination", "path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"tag": "@timestamp", "path": "*exp.@timestamp", "type": "*datetime", "value": "*now"},
|
||||
{"tag": "SetupTime", "path": "*exp.SetupTime", "type": "*variable", "value": "~*req.SetupTime"},
|
||||
{"tag": "AnswerTime", "path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime"},
|
||||
{"tag": "Usage", "path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"tag": "Cost", "path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost{*round:4}"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "ElasticsearchExporterHttps",
|
||||
"type": "*els",
|
||||
"export_path": "https://192.168.56.29:9200",
|
||||
"attempts": 1,
|
||||
"opts": {
|
||||
"elsIndex": "cdrs",
|
||||
"elsUsername":"elastic",
|
||||
"elsPassword":"",
|
||||
"caPath":"/path/to/http_ca.crt",
|
||||
//"elsCertificateFingerPrint":"",
|
||||
// "elsServiceToken":""
|
||||
// "elsLogger":"elsJson",
|
||||
// "elsDiscoverNodesOnStart":true,
|
||||
// "elsDiscoverNodesInterval":"10s",
|
||||
// "elsEnableDebugLogger":false,
|
||||
// "elsCompressRequestBody":true,
|
||||
// "elsCompressRequestBodyLevel":0,
|
||||
// "elsRetryOnStatus":[],
|
||||
// "elsMaxRetries": 0,
|
||||
// "elsDisableRetry": false,
|
||||
|
||||
//"elsIfPrimaryTerm": 0,
|
||||
//"elsIfSeqNo": 0,
|
||||
"elsOpType": "",
|
||||
"elsPipeline": "",
|
||||
"require_alias": "",
|
||||
"elsRouting": "",
|
||||
"elsTimeout": "0",
|
||||
//"elsVersion": 0,
|
||||
"elsVersionType": "",
|
||||
"elsWaitForActiveShards": "",
|
||||
},
|
||||
"fields":[
|
||||
{"tag": "CGRID", "path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"tag": "RunID", "path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
|
||||
{"tag": "ToR", "path": "*exp.ToR", "type": "*variable", "value": "~*req.ToR"},
|
||||
{"tag": "OriginID", "path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
|
||||
{"tag": "RequestType", "path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
|
||||
{"tag": "Tenant", "path": "*exp.Tenant", "type": "*variable", "value": "~*vars.*tenant"},
|
||||
{"tag": "Category", "path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
|
||||
{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
|
||||
{"tag": "Subject", "path": "*exp.Subject", "type": "*variable", "value": "~*req.Subject"},
|
||||
{"tag": "Destination", "path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
|
||||
{"tag": "@timestamp", "path": "*exp.@timestamp", "type": "*datetime", "value": "*now"},
|
||||
{"tag": "SetupTime", "path": "*exp.SetupTime", "type": "*variable", "value": "~*req.SetupTime"},
|
||||
{"tag": "AnswerTime", "path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime"},
|
||||
{"tag": "Usage", "path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"tag": "Cost", "path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost{*round:4}"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "HTTPJsonMapExporterWithNoFields",
|
||||
"type": "*httpJSONMap",
|
||||
|
||||
Reference in New Issue
Block a user