Skip to content

Instantly share code, notes, and snippets.

@atomotic
Created November 7, 2021 12:52
Embed
What would you like to do?
version: "3"
node-exporter:
image: prom/node-exporter
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.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)"
restart: always
ports:
- 9100:9100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment