Skip to content

Instantly share code, notes, and snippets.

@publicarray
Last active August 11, 2018 00:46
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 publicarray/e10898ad7f51fab2a057964fd1902836 to your computer and use it in GitHub Desktop.
Save publicarray/e10898ad7f51fab2a057964fd1902836 to your computer and use it in GitHub Desktop.
Docker & Prometheus node-exporter

https://www.digitalocean.com/community/tutorials/how-to-install-prometheus-on-ubuntu-16-04

https://www.digitalocean.com/community/tutorials/how-to-use-prometheus-to-monitor-your-centos-7-server

https://www.digitalocean.com/community/tutorials/how-to-use-prometheus-to-monitor-your-ubuntu-14-04-server

docker run --rm quay.io/prometheus/node-exporter -h

docker run -d --net=host --pid=host --name "node-exporter" --cap-add=SYS_TIME -v "/proc:/host/proc:ro" -v "/sys:/host/sys:ro" -v "/:/rootfs:ro" quay.io/prometheus/node-exporter --path.procfs /host/proc --path.sysfs  /host/proc --collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"

# with ntp collector
docker run -d --net=host --pid=host --name "node-exporter" --cap-add=SYS_TIME -v "/proc:/host/proc:ro" -v "/sys:/host/sys:ro" -v "/:/rootfs:ro" quay.io/prometheus/node-exporter --collector.ntp --collector.ntp.server="10.19.96.3" --collector.ntp.server-is-local --path.procfs /host/proc --path.sysfs  /host/proc --collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"

https://github.com/prometheus/node_exporter/blob/master/docs/TIME.md

https://github.com/google/cadvisor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment