Create node-exporter.yml

This commit is contained in:
digitalstudium 2021-07-25 10:31:38 +03:00 committed by GitHub
parent b133a4ee05
commit 253248e7c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

15
node-exporter.yml Normal file
View File

@ -0,0 +1,15 @@
version: "3.9"
services:
node-exporter:
image: prom/node-exporter:v1.2.0
ports:
- "9100:9100"
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude'
- '^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)'