-
Notifications
You must be signed in to change notification settings - Fork 34
/
monitoring.yml
59 lines (56 loc) · 1.54 KB
/
monitoring.yml
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
59
version: "3"
services:
prometheus:
image: prom/prometheus:v2.37.0
container_name: prometheus
restart: unless-stopped
user: ${PUID}:${PGID}
ports:
- "9090:9090"
volumes:
- ${DATADIR}/prometheus/etc:/etc/prometheus
- ${DATADIR}/prometheus/data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "10m"
node_exporter:
image: prom/node-exporter
container_name: node_exporter
command:
- '--path.rootfs=/host'
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "10m"
cadvisor:
#image: gcr.io/cadvisor/cadvisor
image: zcube/cadvisor:latest
container_name: cadvisor
command:
- "--docker_only=true"
- "--housekeeping_interval=30s"
- "--disable_metrics=accelerator,cpu_topology,disk,memory_numa,tcp,udp,percpu,sched,process,hugetlb,referenced_memory,resctrl,cpuset,advtcp,memory_numa"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
- /etc/machine-id:/etc/machine-id:ro
devices:
- /dev/kmsg
restart: unless-stopped
logging:
driver: loki
options:
loki-url: "http://localhost:3100/loki/api/v1/push"
max-size: "10m"