From 1d9dae01008337e807a7e758934daa8a8a3ea470 Mon Sep 17 00:00:00 2001 From: czephyr Date: Mon, 23 Dec 2024 19:54:02 +0100 Subject: [PATCH] update docker example Signed-off-by: czephyr --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff5d27ead0..0091bb4cd5 100644 --- a/README.md +++ b/README.md @@ -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.