-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.metrics.yaml
58 lines (54 loc) · 1.33 KB
/
docker-compose.metrics.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3.8'
networks:
test:
name: test
services:
prometheus:
image: prom/prometheus:v2.55.1
command:
- --web.enable-remote-write-receiver
- --enable-feature=native-histograms
- --config.file=/etc/prometheus/prometheus.yaml
networks:
- test
ports:
- "9090:9090"
logging:
driver: none
volumes:
- ./prometheus:/etc/prometheus/
grafana:
image: grafana/grafana:11.3.0
networks:
- test
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./grafana:/etc/grafana/provisioning/
logging:
driver: none
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.51.0
ports:
- 8080:8080
volumes:
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/machine-id:/etc/machine-id:ro
- /var/lib/dbus/machine-id:/var/lib/dbus/machine-id:ro
networks:
- test
restart: unless-stopped
container_name: cadvisor
command: --enable_metrics=cpu,cpuLoad,sched,process,resctrl,memory,cpuset,advtcp,network,tcp,perf_event
privileged: true
devices:
- /dev/kmsg:/dev/kmsg
logging:
driver: none