Skip to content

Commit f613b13

Browse files
committed
it works for real
1 parent 2e16483 commit f613b13

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docker-compose.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ services:
1717

1818
node_exporter:
1919
image: quay.io/prometheus/node-exporter:latest
20-
container_name: node_exporter
2120
command:
2221
- '--path.rootfs=/host'
2322
network_mode: host
@@ -41,15 +40,19 @@ services:
4140
- '--web.enable-lifecycle'
4241
ports:
4342
- "9090:9090"
43+
depends_on:
44+
- cadvisor
45+
- node_exporter
4446

4547
grafana:
46-
# container_name: grafana
4748
ports:
4849
- 9200:3000
4950
image: grafana/grafana
5051
restart: always
5152
volumes:
5253
- grafana-data:/var/lib/grafana
54+
depends_on:
55+
- prometheus
5356

5457
volumes:
5558
prometheus_data:

0 commit comments

Comments
 (0)