Dump HV-VES metrics to file after tests
[integration/csit.git] / plans / dcaegen2-collectors-hv-ves / testsuites / teardown.sh
index 787f811..50b8a91 100755 (executable)
@@ -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