forked from Omnition/synthetic-load-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·31 lines (22 loc) · 838 Bytes
/
start.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
#!/bin/sh
if [ -z "${JAEGER_COLLECTOR_URL}" ]; then JAEGER_COLLECTOR_URL=http://jaeger-collector:14268; fi
if [ -z "${TOPOLOGY_FILE}" ]; then TOPOLOGY_FILE=./topologies/hipster-shop.json; fi
if [ ! -z "${ZIPKINV1_JSON_URL}" ]; then
PARAMS="$PARAMS --zipkinV1JsonUrl ${ZIPKINV1_JSON_URL}"
fi
if [ ! -z "${ZIPKINV2_JSON_URL}" ]; then
PARAMS="$PARAMS --zipkinV2JsonUrl ${ZIPKINV2_JSON_URL}"
fi
if [ ! -z "${ZIPKINV1_THRIFT_URL}" ]; then
PARAMS="$PARAMS --zipkinV1ThriftUrl ${ZIPKINV1_THRIFT_URL}"
fi
if [ ! -z "${ZIPKINV2_PROTO3_URL}" ]; then
PARAMS="$PARAMS --zipkinV2Proto3Url ${ZIPKINV2_PROTO3_URL}"
fi
if [ -z "${PARAMS}" ]; then
PARAMS="--jaegerCollectorUrl ${JAEGER_COLLECTOR_URL}"
fi
echo "using params: " ${PARAMS}
java -jar synthetic-load-generator.jar \
--paramsFile ${TOPOLOGY_FILE} \
$PARAMS