diff --git a/node-exporter.yml b/node-exporter.yml index 3a483d4ba67516dc7d665dec61f66050c18bdbfe..eeac74b9188427720792b5497550b15636c3c714 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'