diff --git a/frameworks/common-functions.sh b/frameworks/common-functions.sh index 14eb9540553d669962c7cd18d6b46ae07f412597..b92505e037593889acb8f243ad771e18bd9eff6a 100644 --- a/frameworks/common-functions.sh +++ b/frameworks/common-functions.sh @@ -93,16 +93,17 @@ function startZipkin { cd .. } +function periodicallyCurlPrometheus { + while [ true ] + do + echo "Curling for prometheus simulation..." + curl localhost:8888 + sleep 1 + done +} + function startPrometheus { - if [ ! -d prometheus-2.28.1.linux-amd64 ] - then - wget https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-amd64.tar.gz - tar -xvf prometheus-2.28.1.linux-amd64.tar.gz - rm prometheus-2.28.1.linux-amd64.tar.gz - fi - cd prometheus-2.28.1.linux-amd64 - ./prometheus &> prometheus.log & - cd .. + periodicallyCurlPrometheus & } function stopBackgroundProcess {