Skip to content

Instantly share code, notes, and snippets.

@tcotav
Created April 18, 2016 19:44
Show Gist options
  • Save tcotav/c7a8fb9b9fc5cf9070bc23159b212482 to your computer and use it in GitHub Desktop.
Save tcotav/c7a8fb9b9fc5cf9070bc23159b212482 to your computer and use it in GitHub Desktop.
Running Prometheus's node_exporter in Docker container for use with CoreOS nodes

ref: (prometheus/node_exporter#66)

docker pull prom/node-exporter
docker run -d -p 9100:9100 -v "/proc:/host/proc" -v "/sys:/host/sys" -v "/:/rootfs" --net="host" prom/node-exporter -collector.procfs /host/proc -collector.sysfs /host/proc -collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
@bersace
Copy link

bersace commented Mar 19, 2018

It's outdated, You should use :

$ docker run -p 9100:9100 -v "/proc:/host/proc" -v "/sys:/host/sys" -v "/:/rootfs" --net="host" 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