This commit is contained in:
Alfredo Funicello 2025-02-25 11:56:41 +01:00 committed by GitHub
commit 4c84e81d16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,8 +45,10 @@ docker run -d \
--net="host" \
--pid="host" \
-v "/:/host:ro,rslave" \
-v "/var/lib/node_exporter/textfile_collector:/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 /textfile_collector
```
For Docker compose, similar flag changes are needed.