Skip to content

Commit 6243671

Browse files
committed
update docker example
1 parent b8aac7c commit 6243671

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ docker run -d \
4444
--net="host" \
4545
--pid="host" \
4646
-v "/:/host:ro,rslave" \
47+
-v "/var/lib/node_exporter/textfile_collector:/var/lib/node_exporter/textfile_collector"
4748
quay.io/prometheus/node-exporter:latest \
48-
--path.rootfs=/host
49+
--path.rootfs=/host --path.udev.data=/host/run/udev/data --path.procfs=/host/proc --path.sysfs=/host/sys
50+
--collector.textfile.directory /var/lib/node_exporter/textfile_collector
4951
```
5052

5153
For Docker compose, similar flag changes are needed.

0 commit comments

Comments
 (0)