File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 41
41
echo " Starting prometheus network"
42
42
${CTR_RUN} network create prometheus-network
43
43
echo Starting prometheus
44
- ${CTR_RUN} run --name prometheus --network prometheus-network -d -p 9090:9090 -v $PWD /prometheus.yml:/etc/prometheus/prometheus.yml:Z -v $PWD /prometheus_volume:/prometheus:Z quay.io/prometheus/prometheus:latest
44
+ ${CTR_RUN} run --name prometheus --network= prometheus-network -d -p 9090:9090 -v $PWD /prometheus.yml:/etc/prometheus/prometheus.yml:Z -v $PWD /prometheus_volume:/prometheus:Z quay.io/prometheus/prometheus:latest
45
45
echo Starting grafana
46
46
${CTR_RUN} run -d --network=prometheus-network --name=grafana -p 3000:3000 -v $PWD /grafana_volume:/var/lib/grafana:Z -v $PWD /provisioning:/etc/grafana/provisioning:Z docker.io/grafana/grafana:latest
47
47
Original file line number Diff line number Diff line change 9
9
exit 1
10
10
fi
11
11
12
+
13
+ mkdir -p grafana_volume/dashboards
14
+ mkdir -p influxdb_volume
15
+
16
+ chmod -R 777 * _volume
17
+
18
+ mkdir -p provisioning/datasources
19
+ cp automatic_influxdb.yml provisioning/datasources/automatic.yml
20
+
21
+
12
22
CTR_RUN=${CTR_RUN:- docker}
13
23
14
24
# check if argument is file, create the telegraf.conf accordingly
34
44
curl -o grafana_volume/dashboards/pcm-dashboard.json $1 /dashboard
35
45
fi
36
46
37
-
38
- mkdir -p grafana_volume/dashboards
39
- mkdir -p influxdb_volume
40
-
41
- chmod -R 777 * _volume
42
-
43
- mkdir -p provisioning/datasources
44
- cp automatic_influxdb.yml provisioning/datasources/automatic.yml
45
-
46
- echo Downloading PCM dashboard
47
- curl -o grafana_volume/dashboards/pcm-dashboard.json $1 /dashboard
48
-
49
47
echo " Creating influxdb network"
50
48
${CTR_RUN} network create influxdb-network
51
49
echo Starting influxdb
52
- ${CTR_RUN} run -d --name influxdb -p 8083:8083 -p 8086:8086 -v $PWD /influxdb_volume:/var/lib/influxdb influxdb:1.8.0-alpine --network influxdb-network
50
+ ${CTR_RUN} run -d --name influxdb -p 8083:8083 -p 8086:8086 --network=influxdb-network - v $PWD /influxdb_volume:/var/lib/influxdb influxdb:1.8.0-alpine
53
51
echo Starting telegraf
54
52
${CTR_RUN} run -d --name telegraf --network=influxdb-network -v $PWD /telegraf.conf:/etc/telegraf/telegraf.conf:ro telegraf
55
53
echo Starting grafana
Original file line number Diff line number Diff line change @@ -10,3 +10,5 @@ for c in grafana telegraf influxdb prometheus; do
10
10
fi
11
11
done
12
12
13
+ ${CTR_RUN} network rm prometheus-network influxdb-network
14
+
You can’t perform that action at this time.
0 commit comments