summaryrefslogtreecommitdiffstats
path: root/development
diff options
context:
space:
mode:
authorPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-12-14 12:05:47 +0100
committerPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-12-17 15:06:29 +0100
commitd55f5c0c3df4b2ea136100e61424810ede749778 (patch)
treeb4d60ede755af2a2204b8303d75b4d74489f6802 /development
parentfb040c0df8ab2b74d02b67feda4e2a161a1311d2 (diff)
Metric: Processing time
Add processing time metric measured as difference between "sent to DMaaP" and "WTP decoded" events. Change-Id: I73bb665145019fcca5ae36e2199ed0e1cc088fdf Issue-ID: DCAEGEN2-1036 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Diffstat (limited to 'development')
-rw-r--r--development/docker-compose.yml10
-rw-r--r--development/prometheus.yml14
-rwxr-xr-xdevelopment/start-simulation.sh31
3 files changed, 55 insertions, 0 deletions
diff --git a/development/docker-compose.yml b/development/docker-compose.yml
index 2b903a8e..a64c62da 100644
--- a/development/docker-compose.yml
+++ b/development/docker-compose.yml
@@ -111,3 +111,13 @@ services:
"--kafka-topics", "HV_VES_PERF3GPP"]
depends_on:
- message-router-kafka
+
+ #
+ # Monitoring
+ #
+ prometheus:
+ image: prom/prometheus
+ ports:
+ - "9090:9090"
+ volumes:
+ - ./prometheus.yml:/etc/prometheus/prometheus.yml
diff --git a/development/prometheus.yml b/development/prometheus.yml
new file mode 100644
index 00000000..201c8f96
--- /dev/null
+++ b/development/prometheus.yml
@@ -0,0 +1,14 @@
+global:
+ scrape_interval: 5s
+ external_labels:
+ monitor: 'my-monitor'
+
+scrape_configs:
+ - job_name: 'prometheus'
+ static_configs:
+ - targets: ['localhost:9090']
+
+ - job_name: 'ves-hv-collector'
+ metrics_path: '/monitoring/prometheus'
+ static_configs:
+ - targets: ['ves-hv-collector:6060']
diff --git a/development/start-simulation.sh b/development/start-simulation.sh
new file mode 100755
index 00000000..70e4aaeb
--- /dev/null
+++ b/development/start-simulation.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+# TODO: Merge this file with bin/xnf-simulation.sh
+
+currentTimeMicros=$((`date +%s%N`/1000))
+
+curl --header 'Content-Type: application/json' --request POST \
+ --data '[
+ {
+ "commonEventHeader": {
+ "version": "sample-version",
+ "domain": "perf3gpp",
+ "sequence": 1,
+ "priority": 1,
+ "eventId": "sample-event-id",
+ "eventName": "sample-event-name",
+ "eventType": "sample-event-type",
+ "startEpochMicrosec": 1545049703000000,
+ "lastEpochMicrosec": '$currentTimeMicros',
+ "nfNamingCode": "sample-nf-naming-code",
+ "nfcNamingCode": "sample-nfc-naming-code",
+ "reportingEntityId": "sample-reporting-entity-id",
+ "reportingEntityName": "sample-reporting-entity-name",
+ "sourceId": "sample-source-id",
+ "sourceName": "sample-source-name",
+ "vesEventListenerVersion": "7.2"
+ },
+ "messageType": "VALID",
+ "messagesAmount": 1
+ }
+ ]' \
+ http://localhost:6062/simulator/async