-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-tracing.sh
executable file
·33 lines (30 loc) · 851 Bytes
/
start-tracing.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -x
# Docker
sudo docker stop jaeger_all_in_one
sudo docker rm jaeger_all_in_one
sudo docker run -d -e \
COLLECTOR_ZIPKIN_HTTP_PORT=9411 \
-p 5775:5775/udp \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 5778:5778 \
-p 16686:16686 \
-p 14268:14268 \
-p 9411:9411 \
--name jaeger_all_in_one \
jaegertracing/all-in-one:latest
sleep 4
# relayd started automatically
sudo lttng create my-kernel-session --live
sudo lttng enable-event --kernel --all #--syscall
sudo lttng add-context --kernel --type=pid --type=tid
sudo lttng start
sudo lttng untrack -k --pid --all
# Start skua-lttng-adapter
sleep 1
(
#source ~/.bashrc
#go get -u github.com/docc-lab/skua-lttng-adapter
babeltrace --input-format=lttng-live net://localhost/host/$HOSTNAME/my-kernel-session --clock-date --clock-gmt --no-delta | skua-lttng-adapter &>/dev/null &
)