Thank you Armir,
I checked the EES and tested some use cases with the below :
"stats": {
"enabled": true,
"ees_conns": ["*localhost"],
"ees_exporter_ids": ["exporter1"]
},
"ees": {
"enabled": true,
"exporters": [{
"id": "exporter1",
"type": "*file_csv",
"export_path": "/tmp/testCSV",
"attempts": 1,
"synchronous": true,
"field_separator": ",",
"fields": [{
"tag": "StatID","path": "*exp.StatID",
"type": "*variable","value": "~*req.StatID"
},
{
"tag": "TotalCallDuration","path": "*exp.TotalCallDuration",
"type": "*variable","value": "~*req.Metrics.*tcd"
},
{
"tag": "TotalCallCost","path": "*exp.TotalCallCost",
"type": "*variable","value": "~*req.Metrics.*tcc"
},
{
"tag": "NumberOfCDRs","path": "*exp.NumberOfCDRs",
"type": "*variable","value": "~*req.Metrics.*sum#1"
}
]
}]
},
and my stats as below :
{
"method": "ApierV1.SetStatQueueProfile",
"params": [
{
"Tenant": "XXXXX",
"ID": "STAT_Fraud",
"FilterIDs": null,
"ActivationInterval": {
"ActivationTime": "2024-01-31T15:00:00Z",
"ExpiryTime": "0001-01-01T00:00:00Z"
},
"QueueLength": 10000000,
"TTL": -1,
"MinItems": 0,
"Metrics": [
{
"FilterIDs": null,
"MetricID": "*tcd"
},
{
"FilterIDs": null,
"MetricID": "*tcc"
},
{
"FilterIDs": null,
"MetricID": "*asr"
},
{
"FilterIDs": null,
"MetricID": "*sum#1"
},
{
"FilterIDs": null,
"MetricID": "*acd"
}
],
"Stored": true,
"Blocker": true,
"Weight": 100,
"ThresholdIDs": ["THProfile_FraudDetection"]
}
]
}
So i can get all stats as below :
{
"method": "StatSv1.GetQueueStringMetrics",
"params": [
{
"id": "STAT_Fraud"
}
]
}
response:{
"id": null,
"result": {
"*acd": "14.14706s",
"*asr": "80%",
"*sum#1": "28",
"*tcc": "N/A",
"*tcd": "8m1s"
},
"error": null
}
and i found the export is partially executed by creating the files ;) in the specific path {{put all are empty}} ,
Could you please kindly guide what is missing in my config?root@9d88f068bb51:/tmp/testCSV# ls -ltrh
total 84K
-rw-r--r-- 1 root root 1 Mar 12 07:08 exporter1_92b84d2.csv
-rw-r--r-- 1 root root 1 Mar 12 07:09 exporter1_5b1e14a.csv
-rw-r--r-- 1 root root 1 Mar 12 07:55 exporter1_509ab14.csv
-rw-r--r-- 1 root root 1 Mar 12 07:59 exporter1_ded2fdd.csv
-rw-r--r-- 1 root root 1 Mar 12 08:00 exporter1_b2bf428.csv
-rw-r--r-- 1 root root 1 Mar 12 08:00 exporter1_59d668d.csv
-rw-r--r-- 1 root root 1 Mar 12 08:01 exporter1_3b7b28c.csv
-rw-r--r-- 1 root root 1 Mar 12 08:01 exporter1_cf2378b.csv
-rw-r--r-- 1 root root 1 Mar 12 08:01 exporter1_698b66c.csv
-rw-r--r-- 1 root root 1 Mar 12 08:10 exporter1_127d834.csv
-rw-r--r-- 1 root root 1 Mar 12 08:10 exporter1_d6d2c9d.csv
-rw-r--r-- 1 root root 1 Mar 12 08:11 exporter1_490dd97.csv
-rw-r--r-- 1 root root 1 Mar 12 08:11 exporter1_95b78f0.csv
-rw-r--r-- 1 root root 1 Mar 12 08:13 exporter1_afedf6c.csv
-rw-r--r-- 1 root root 1 Mar 12 08:15 exporter1_80f7344.csv
-rw-r--r-- 1 root root 1 Mar 12 08:21 exporter1_bc4cafb.csv
-rw-r--r-- 1 root root 1 Mar 12 08:21 exporter1_a950b15.csv
-rw-r--r-- 1 root root 1 Mar 12 08:22 exporter1_823ab5b.csv
-rw-r--r-- 1 root root 1 Mar 12 08:23 exporter1_f133329.csv
-rw-r--r-- 1 root root 1 Mar 12 08:23 exporter1_2927db8.csv
-rw-r--r-- 1 root root 1 Mar 12 08:26 exporter1_1b86021.csv