From e5b24e6da2b638a4519ba2cda380cfe8d47c2ba2 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Tue, 4 Jan 2022 08:14:36 +0100 Subject: [PATCH] nixos/prometheus-node-exporter: do not protect home Set ProtectHome to false for the node exporter. This allows free space monitoring under /home. --- nixos/modules/services/monitoring/prometheus/exporters/node.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/monitoring/prometheus/exporters/node.nix b/nixos/modules/services/monitoring/prometheus/exporters/node.nix index 5e5fc7cd5524..417920402f34 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/node.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/node.nix @@ -44,6 +44,8 @@ in ]; # The timex collector needs to access clock APIs ProtectClock = any (collector: collector == "timex") cfg.disabledCollectors; + # Allow space monitoring under /home + ProtectHome = true; }; }; }