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

Try curling prometheus endpoint instead of real prometheus

parent 6c8f66ad
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
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