Skip to content

Instantly share code, notes, and snippets.

@atomotic
Created November 7, 2021 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomotic/e8bf1126a3e4274e2390db97f57c0b58 to your computer and use it in GitHub Desktop.
Save atomotic/e8bf1126a3e4274e2390db97f57c0b58 to your computer and use it in GitHub Desktop.
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