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