aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
diff options
context:
space:
mode:
authorFilip Krzywka <filip.krzywka@nokia.com>2019-04-02 09:05:08 +0200
committerFilip Krzywka <filip.krzywka@nokia.com>2019-04-02 09:05:08 +0200
commit614aeb8b2ebf4e6c1770c15a56f6c213d068a92d (patch)
tree7806546b8bb832bb2598e27a64c298e55a506afb /plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
parent4d4b2915987d8c2a6014b873b766534ddd3447c3 (diff)
Dump HV-VES metrics to file after tests
Change-Id: If85a884655322d0178742e15bac2634439d0d7eb Issue-ID: DCAEGEN2-1359 Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
Diffstat (limited to 'plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh')
-rwxr-xr-xplans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh b/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
index 787f811e..50b8a918 100755
--- a/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
+++ b/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
@@ -33,6 +33,9 @@ fi
set +e
+METRICS_FILE=${WORKSPACE}/archives/containers_logs/hv-ves-metrics.dump
+docker-compose exec hv-ves-collector curl -qs localhost:6060/monitoring/prometheus > ${METRICS_FILE}
+
COMPOSE_LOGS_FILE=${WORKSPACE}/archives/containers_logs/docker-compose.log
docker-compose logs > ${COMPOSE_LOGS_FILE}
docker-compose down