Skip to content
Snippets Groups Projects
Commit 1e4af212 authored by Wei Wei's avatar Wei Wei Committed by Ben Kochie
Browse files

add rslave for docker example, so node_exporter can receive host mount/unmount events (#660)

parent 6e2053c5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -131,6 +131,20 @@ If you need to run it on Docker, you can deploy this exporter using the
image](https://quay.io/repository/prometheus/node-exporter) with the following
options and bind-mounts:
 
for docker version >= 1.10
```bash
docker run -d -p 9100:9100 \
-v "/proc:/host/proc:ro" \
-v "/sys:/host/sys:ro" \
-v "/:/rootfs:ro,rslave" \
--net="host" \
quay.io/prometheus/node-exporter \
--path.procfs /host/proc \
--path.sysfs /host/sys \
--collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
```
for docker version < 1.10
```bash
docker run -d -p 9100:9100 \
-v "/proc:/host/proc:ro" \
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment