added nodexporter

This commit is contained in:
2023-01-23 10:22:08 +00:00
parent 1a099bf574
commit 4a634afa2f
2 changed files with 31 additions and 34 deletions
+19
View File
@@ -0,0 +1,19 @@
version: '3'
services:
node-exporter:
image: prom/node-exporter:latest
deploy:
mode: global
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"