From 1d9dae01008337e807a7e758934daa8a8a3ea470 Mon Sep 17 00:00:00 2001 From: czephyr Date: Mon, 23 Dec 2024 19:54:02 +0100 Subject: [PATCH 1/3] 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. From 110b7039f0bb46f442ccd2563453b276c0b50e1c Mon Sep 17 00:00:00 2001 From: Alfedo Funicello Date: Mon, 23 Dec 2024 20:40:52 +0100 Subject: [PATCH 2/3] Update README.md Co-authored-by: Ben Kochie Signed-off-by: Alfedo Funicello --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0091bb4cd5..d2dadfeaf9 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ docker run -d \ --net="host" \ --pid="host" \ -v "/:/host:ro,rslave" \ - -v "/var/lib/node_exporter/textfile_collector:/var/lib/node_exporter/textfile_collector" + -v "/var/lib/node_exporter/textfile_collector:/textfile_collector" quay.io/prometheus/node-exporter:latest \ --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 From 9a963ca8ea8a3f7f39b27cf0fea2bf8d7a67a515 Mon Sep 17 00:00:00 2001 From: czephyr Date: Mon, 23 Dec 2024 20:45:21 +0100 Subject: [PATCH 3/3] added backslashes --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d2dadfeaf9..6b1bf5c288 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,10 @@ docker run -d \ --net="host" \ --pid="host" \ -v "/:/host:ro,rslave" \ - -v "/var/lib/node_exporter/textfile_collector:/textfile_collector" + -v "/var/lib/node_exporter/textfile_collector:/textfile_collector" \ quay.io/prometheus/node-exporter:latest \ - --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 + --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.