From 567ee5d563e070a1266572d781c3366a4aa9164f Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Mon, 8 Apr 2024 15:44:56 +0200 Subject: [PATCH] allow node exporter to see the host disk --- node-exporter.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node-exporter.yml b/node-exporter.yml index 3a483d4..eeac74b 100644 --- a/node-exporter.yml +++ b/node-exporter.yml @@ -12,4 +12,8 @@ services: container_name: ${CONTAINER_NAME_PREFIX}node-exporter network_mode: host # run on the host to be able to access host network statistics pid: host + volumes: + - /:/host:ro,rslave restart: unless-stopped + command: + - '--path.rootfs=/host' -- GitLab