2024-10-13 23:31:21 -04:00
|
|
|
---
|
|
|
|
services:
|
|
|
|
node_exporter:
|
|
|
|
image: quay.io/prometheus/node-exporter:v1.8.2
|
|
|
|
container_name: node_exporter
|
|
|
|
command: "--path.rootfs=/host"
|
|
|
|
ports:
|
|
|
|
- 9100:9100
|
|
|
|
pid: host
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /:/host:ro,rslave
|
|
|
|
|
|
|
|
cadvisor:
|
2024-10-13 23:58:25 -04:00
|
|
|
image: gcr.io/cadvisor/cadvisor:v0.49.1
|
2024-10-13 23:31:21 -04:00
|
|
|
container_name: cadvisor
|
|
|
|
ports:
|
|
|
|
- 9101:8080
|
|
|
|
volumes:
|
|
|
|
- /:/rootfs:ro
|
|
|
|
- /run:/run:ro
|
|
|
|
- /sys:/sys:ro
|
|
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
|
|
- /dev/disk/:/dev/disk:ro
|
|
|
|
devices:
|
|
|
|
- /dev/kmsg
|
|
|
|
privileged: true
|
|
|
|
restart: unless-stopped
|