Skip to content

Instantly share code, notes, and snippets.

@outofjungle
Last active April 29, 2019 14:59
Show Gist options
  • Select an option

  • Save outofjungle/9aaaf258bc2fe4ad908360a8aec94ee4 to your computer and use it in GitHub Desktop.

Select an option

Save outofjungle/9aaaf258bc2fe4ad908360a8aec94ee4 to your computer and use it in GitHub Desktop.
Node exporter in docker
docker run \
-d --rm \
-v "/proc:/host/proc" \
-v "/sys:/host/sys" \
-v "/:/rootfs" \
--network=prometheus \
--name=prometheus \
prom/node-exporter \
--path.procfs /host/proc \
--path.sysfs /host/proc \
--collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment