From abe0c5b8c5a6747e712525b085ff5db94932aa89 Mon Sep 17 00:00:00 2001 From: David Georg Reichelt <davidgeorg_reichelt@dagere.de> Date: Fri, 27 Aug 2021 15:09:07 +0200 Subject: [PATCH] Close correct script, increase timeout to 15, call correct endpoint --- frameworks/common-functions.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frameworks/common-functions.sh b/frameworks/common-functions.sh index b92505e..70baeb7 100644 --- a/frameworks/common-functions.sh +++ b/frameworks/common-functions.sh @@ -89,6 +89,7 @@ function startZipkin { cd zipkin fi java -Xmx6g -jar zipkin.jar &> zipkin.txt & + pid=$1 sleep 5 cd .. } @@ -97,17 +98,18 @@ function periodicallyCurlPrometheus { while [ true ] do echo "Curling for prometheus simulation..." - curl localhost:8888 - sleep 1 + curl localhost:8888/metrics + sleep 15 done } function startPrometheus { periodicallyCurlPrometheus & + pid=$! } function stopBackgroundProcess { - kill %1 + kill $pid } function writeConfiguration() { -- GitLab