From d623f12015d721c8e037b5176104b39c92fcbbe9 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sun, 13 Oct 2024 22:50:36 -0400 Subject: [PATCH] add exporter & cadvisor --- docker/grafana/docker-compose.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docker/grafana/docker-compose.yml b/docker/grafana/docker-compose.yml index 6d40029..5ae4e41 100644 --- a/docker/grafana/docker-compose.yml +++ b/docker/grafana/docker-compose.yml @@ -22,5 +22,30 @@ services: volumes: - /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: prom_data: \ No newline at end of file