RIC-710: Adding E2T counters to Vespa-Manager
Change-Id: Ifc522bfca7b610860beac1dab1a757c4d22ceeb8
Signed-off-by: dhiraj <dhiraj.verma@nokia.com>
diff --git a/config/config-file.json b/config/config-file.json
index 455cf8f..5627e86 100755
--- a/config/config-file.json
+++ b/config/config-file.json
@@ -55,6 +55,7 @@
"host": "http://service-ricplt-vespamgr-http.ricplt.svc.cluster.local:8080",
"measurementUrl": "/ric/v1/measurements",
"pltFile": "/tmp/vespa-plt-meas.json",
+ "pltCounterFile": "/cfg/plt-counter.json",
"appManager": {
"host": "http://service-ricplt-appmgr-http.ricplt.svc.cluster.local:8080",
"path": "/ric/v1/config",
@@ -72,7 +73,7 @@
"collector": {
"primaryAddr": "pod-ves-simulator",
"secondaryAddr": "pod-ves-simulator",
- "serverRoot": "0",
+ "serverRoot": "",
"primaryPort": 8443,
"primaryUser": "sample1",
"primaryPassword": "sample1",
@@ -81,4 +82,4 @@
},
"faults": { },
"metrics": []
-}
\ No newline at end of file
+}
diff --git a/config/plt-counter.json b/config/plt-counter.json
new file mode 100644
index 0000000..339cdce
--- /dev/null
+++ b/config/plt-counter.json
@@ -0,0 +1,58 @@
+[
+ {
+ "metadata": { },
+ "descriptor": { },
+ "config": {
+ "local": {
+ "host": ":8080"
+ },
+ "logger": {
+ "level": 5
+ },
+ "measurements": [
+ {
+ "moId": "SEP-12/XAPP-1",
+ "measType": "X2",
+ "measId": "9001",
+ "measInterval": "60",
+ "metrics": [
+ {
+ "name": "exposer_transferred_bytes_total",
+ "objectName": "exposer_transferred_bytes_total",
+ "objectInstance": "exposer_transferred_bytes_total",
+ "counterId": "0011",
+ "type": "counter",
+ "description": "exposer_transferred_bytes_total"
+ },
+ {
+ "name": "exposer_scrapes_total",
+ "objectName": "exposer_scrapes_total",
+ "objectInstance": "exposer_scrapes_total",
+ "counterId": "0012",
+ "type": "counter",
+ "description": "exposer_scrapes_total"
+ },
+ {
+ "name": "exposer_request_latencies_count",
+ "objectName": "exposer_request_latencies_count",
+ "objectInstance": "exposer_request_latencies_count",
+ "counterId": "0013",
+ "type": "counter",
+ "description": "exposer_request_latencies_count"
+ },
+ {
+ "name": "exposer_request_latencies_sum",
+ "objectName": "exposer_request_latencies_sum",
+ "objectInstance": "exposer_request_latencies_sum",
+ "counterId": "0014",
+ "type": "counter",
+ "description": "exposer_request_latencies_sum"
+ }
+ ]
+ }
+ ]
+ }
+ }
+
+]
+