forked from cd-athena/LLL-CAdViSE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_monitoring.sh
executable file
·43 lines (36 loc) · 1.04 KB
/
start_monitoring.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
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
MONITORING_NETWORK="monitoring"
PROMETHEUS_CONFIG_PATH="/Users/macbook/Development/LLL-CAdViSE/prometheus.yml"
docker stop netdata
docker rm netdata
docker run -d --name=netdata \
-p 19999:19999 \
-v netdataconfig:/etc/netdata \
-v netdatalib:/var/lib/netdata \
-v netdatacache:/var/cache/netdata \
-v /etc/passwd:/host/etc/passwd:ro \
-v /etc/group:/host/etc/group:ro \
-v /proc:/host/proc:ro \
-v /sys:/host/sys:ro \
-v /etc/os-release:/host/etc/os-release:ro \
--hostname netdata \
--network $MONITORING_NETWORK \
--restart unless-stopped \
--cap-add SYS_PTRACE \
--security-opt apparmor=unconfined \
netdata/netdata
docker stop prometheus
docker rm prometheus
docker run -d \
--name=prometheus \
--network $MONITORING_NETWORK \
-p 9090:9090 \
-v $PROMETHEUS_CONFIG_PATH:/etc/prometheus/prometheus.yml \
prom/prometheus
docker stop grafana
docker rm grafana
docker run -d \
--name=grafana \
--network $MONITORING_NETWORK \
-p 3000:3000 \
grafana/grafana-enterprise