Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,34 @@ function periodicallyCurlPrometheus {
}

function startPrometheus {
periodicallyCurlPrometheus $1 &
pid=$!
if [ ${MACHINE_TYPE} == 'aarch64' ]
then
startPrometheusARM64
else
periodicallyCurlPrometheus $1 &
pid=$!
fi
}

function startPrometheusARM64 {
if [ ! -d prometheus-3.6.0.linux-arm64 ]
then
wget https://github.com/prometheus/prometheus/releases/download/v3.6.0/prometheus-3.6.0.linux-arm64.tar.gz
tar -xvf prometheus-3.6.0.linux-arm64.tar.gz
rm prometheus-3.6.0.linux-arm64.tar.gz
fi
cd prometheus-3.6.0.linux-arm64
./prometheus &> prometheus.log &
echo $! > /tmp/prometheus.pid
cd ..
}

function stopBackgroundProcess {
if [ -f /tmp/prometheus.pid ]
then
pid=$(cat /tmp/prometheus.pid)
rm /tmp/prometheus.pid
fi
kill $pid
}

Expand Down
8 changes: 2 additions & 6 deletions frameworks/OpenTelemetry-java/labels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@ TITLE[0]="No instrumentation"
TITLE[1]="No logging"
TITLE[2]="Logging"
TITLE[3]="Zipkin"
MACHINE_TYPE=`uname -m`;
if [ ${MACHINE_TYPE} == 'x86_64' ]
then
TITLE[4]="Prometheus"
#TITLE[5]="OpenTelemetry Jaeger"
fi
TITLE[4]="Prometheus"
#TITLE[5]="OpenTelemetry Jaeger"
3 changes: 2 additions & 1 deletion frameworks/Skywalking-java/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function startSkywalkingServer {
./oapService.sh &
SKYWALKING_PID=$!
cd "${BASE_DIR}"
while ! nc -z localhost 11800; do
# while ! nc -z localhost 11800; do
while ! timeout 1 bash -c "cat < /dev/null > /dev/tcp/localhost/11800" 2>/dev/null; do
sleep 2
done
}
Expand Down
2 changes: 1 addition & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ -z $DEBUG ]; then
DEBUG=false ## false
fi


MACHINE_TYPE=`uname -m`

# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
Expand Down