From 55d6c177763c51955d84ae9f144baf9434015d38 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 28 Jul 2023 13:48:30 +0200 Subject: [PATCH] Allow access to devices for node_exporter --- m/hut/monitoring.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/m/hut/monitoring.nix b/m/hut/monitoring.nix index c55d366..7690724 100644 --- a/m/hut/monitoring.nix +++ b/m/hut/monitoring.nix @@ -23,6 +23,10 @@ systemd.services.prometheus-ipmi-exporter.serviceConfig.DynamicUser = lib.mkForce false; systemd.services.prometheus-ipmi-exporter.serviceConfig.PrivateDevices = lib.mkForce false; + # We need access to the devices to monitor the disk space + systemd.services.prometheus-node-exporter.serviceConfig.PrivateDevices = lib.mkForce false; + systemd.services.prometheus-node-exporter.serviceConfig.ProtectHome = lib.mkForce "read-only"; + virtualisation.docker.daemon.settings = { metrics-addr = "127.0.0.1:9323"; };