diff options
Diffstat (limited to 'development')
-rw-r--r-- | development/docker-compose.yml | 10 | ||||
-rw-r--r-- | development/prometheus.yml | 14 | ||||
-rwxr-xr-x | development/start-simulation.sh | 31 |
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 |