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

Move zipkin / prometheus start to common-functions.sh

parent 7b69d522
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,36 @@ function createRLabels() {
echo $LABELS
}
function startZipkin {
if [ ! -d zipkin ]
then
mkdir zipkin
cd zipkin
curl -sSL https://zipkin.io/quickstart.sh | bash -s
else
cd zipkin
fi
java -Xmx6g -jar zipkin.jar &> zipkin.txt &
sleep 5
cd ..
}
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 ..
}
function stopBackgroundProcess {
kill %1
}
function writeConfiguration() {
uname -a >${RESULTS_DIR}configuration.txt
${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTS_DIR}configuration.txt
......
......@@ -34,24 +34,6 @@ function runInspectITZipkin {
stopBackgroundProcess
}
function startZipkin {
if [ ! -d zipkin ]
then
mkdir zipkin
cd zipkin
curl -sSL https://zipkin.io/quickstart.sh | bash -s
else
cd zipkin
fi
java -Xmx6g -jar zipkin.jar &> zipkin.txt &
sleep 5
cd ..
}
function stopBackgroundProcess {
kill %1
}
function cleanup {
[ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log
echo >>${BASEDIR}inspectit.log
......
......@@ -14,19 +14,6 @@ function startZipkin {
cd ..
}
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 ..
}
function startJaeger {
if [ ! -d jaeger-1.24.0-linux-amd64 ]
then
......@@ -39,10 +26,6 @@ function startJaeger {
cd ..
}
function stopBackgroundProcess {
kill %1
}
function cleanup {
[ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTS_DIR}hotspot-${i}-$RECURSION_DEPTH-${k}.log
echo >>${BASEDIR}opentelemetry.log
......
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