forked from sw-samuraj/observability-mff-uk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-backends.sh
executable file
·30 lines (22 loc) · 1.29 KB
/
run-backends.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 -eu
# TODO Modify following *_HOME variables to your environment. (*_HOME variable has a value of installation directory of the specific backend.)
LOKI_HOME="${HOME}/dev/loki"
PROMETHEUS_HOME="${HOME}/dev/prometheus"
JAEGER_HOME="${HOME}/dev/jaeger"
GRAFANA_HOME="${HOME}/dev/grafana"
PWD=$(pwd)
./kill-backends.sh
# TODO Modify following binary names according your environment.
echo "Starting Loki in the background..."
"${LOKI_HOME}/loki-linux-amd64" -config.file "${PWD}/_config/loki/loki-local-config.yaml" > /dev/null 2>&1 &
echo "Starting Promtail in the background..."
"${LOKI_HOME}/promtail-linux-amd64" -config.file "${PWD}/_config/loki/promtail-local-config.yaml" > /dev/null 2>&1 &
echo "Starting Prometheus in the background..."
"${PROMETHEUS_HOME}/prometheus" --config.file "${PWD}/_config/prometheus/prometheus.yml" --storage.tsdb.path="_tmp/prometheus/data/" > /dev/null 2>&1 &
echo "Starting Jaeger in the background..."
"${JAEGER_HOME}/jaeger" --collector.zipkin.host-port=:9411 > /dev/null 2>&1 &
echo "Starting Grafana in the background..."
"${GRAFANA_HOME}/bin/grafana" -homepath "${GRAFANA_HOME}" > /dev/null 2>&1 &
echo "Starting downstream services in the background..."
./observability -p 5050 -n downstream-1 -d "http://localhost:6060" &
./observability -p 6060 -n downstream-2 &