Add prometheus and grafana for monitoring

This commit is contained in:
2026-03-13 18:10:28 +00:00
parent 557571c9fd
commit 2c380b511c
9 changed files with 234 additions and 22 deletions

View File

@@ -0,0 +1,17 @@
services:
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
restart: unless-stopped
pid: host
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- "--path.procfs=/host/proc"
- "--path.rootfs=/rootfs"
- "--path.sysfs=/host/sys"
- "--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)"
ports:
- "9100:9100"