Skip to content

Commit d6a0bc5

Browse files
committed
✨ node exporter + prometheus + grafana
1 parent 234e9e6 commit d6a0bc5

File tree

6 files changed

+2071
-6
lines changed

6 files changed

+2071
-6
lines changed

docker-compose.yml

+39-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,42 @@
11
version: "3.0"
22

3-
networks:
4-
rest-api:
5-
63
services:
4+
node-exporter:
5+
image: prom/node-exporter:latest
6+
container_name: node-exporter
7+
restart: unless-stopped
8+
volumes:
9+
- /proc:/host/proc:ro
10+
- /sys:/host/sys:ro
11+
- /:/rootfs:ro
12+
ports:
13+
- "9100:9100"
14+
15+
prometheus:
16+
image: prom/prometheus:latest
17+
container_name: prometheus
18+
volumes:
19+
- ./prometheus:/etc/prometheus
20+
command:
21+
- '--config.file=/etc/prometheus/prometheus.yml'
22+
ports:
23+
- '9090:9090'
24+
depends_on:
25+
- node-exporter
26+
27+
grafana:
28+
image: grafana/grafana:latest
29+
container_name: grafana
30+
volumes:
31+
- ./grafana:/etc/grafana
32+
command:
33+
- '--config=/etc/grafana/grafana.ini'
34+
ports:
35+
- "3001:3001"
36+
depends_on:
37+
- prometheus
738

8-
rest-api:
39+
file-server:
940
build: ./
1041
environment:
1142
- HTTP_SERVER_HOST=localhost
@@ -20,5 +51,7 @@ services:
2051
- FILE_SERVER_BASE_PATH=/Users/eertree_work/experiments/rest-api-file-server/test-data
2152
ports:
2253
- 8080:36000
23-
networks:
24-
- rest-api
54+
depends_on:
55+
- prometheus
56+
- node-exporter
57+
- grafana

0 commit comments

Comments
 (0)