Skip to content

Commit

Permalink
update docker example
Browse files Browse the repository at this point in the history
Signed-off-by: czephyr <[email protected]>
  • Loading branch information
czephyr committed Dec 23, 2024
1 parent b8aac7c commit 1d9dae0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ docker run -d \
--net="host" \
--pid="host" \
-v "/:/host:ro,rslave" \
-v "/var/lib/node_exporter/textfile_collector:/var/lib/node_exporter/textfile_collector"
quay.io/prometheus/node-exporter:latest \
--path.rootfs=/host
--path.rootfs=/host --path.udev.data=/host/run/udev/data --path.procfs=/host/proc --path.sysfs=/host/sys
--collector.textfile.directory /var/lib/node_exporter/textfile_collector
```

For Docker compose, similar flag changes are needed.
Expand Down

0 comments on commit 1d9dae0

Please sign in to comment.