Skip to content
Snippets Groups Projects
Commit abe0c5b8 authored by David Georg Reichelt's avatar David Georg Reichelt
Browse files

Close correct script, increase timeout to 15, call correct endpoint

parent 9e983a76
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,7 @@ function startZipkin { ...@@ -89,6 +89,7 @@ function startZipkin {
cd zipkin cd zipkin
fi fi
java -Xmx6g -jar zipkin.jar &> zipkin.txt & java -Xmx6g -jar zipkin.jar &> zipkin.txt &
pid=$1
sleep 5 sleep 5
cd .. cd ..
} }
...@@ -97,17 +98,18 @@ function periodicallyCurlPrometheus { ...@@ -97,17 +98,18 @@ function periodicallyCurlPrometheus {
while [ true ] while [ true ]
do do
echo "Curling for prometheus simulation..." echo "Curling for prometheus simulation..."
curl localhost:8888 curl localhost:8888/metrics
sleep 1 sleep 15
done done
} }
function startPrometheus { function startPrometheus {
periodicallyCurlPrometheus & periodicallyCurlPrometheus &
pid=$!
} }
function stopBackgroundProcess { function stopBackgroundProcess {
kill %1 kill $pid
} }
function writeConfiguration() { function writeConfiguration() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment