add exporter & cadvisor

This commit is contained in:
Matt Reeves 2024-10-13 22:50:36 -04:00
parent 895dfc1e89
commit d623f12015

View file

@ -22,5 +22,30 @@ services:
volumes: volumes:
- /docker/appdata/grafana:/etc/grafana/provisioning/datasources - /docker/appdata/grafana:/etc/grafana/provisioning/datasources
node_exporter:
image: quay.io/prometheus/node-exporter:v1.8.2
container_name: node_exporter
command: "--path.rootfs=/host"
pid: host
restart: unless-stopped
volumes:
- /:/host:ro,rslave
cadvisor:
image: ghcr.io/cadvisor/cadvisor:v0.49.1
container_name: cadvisor
# ports:
# - 8080: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
volumes: volumes:
prom_data: prom_data: