From dc46ec8eda74db793c3379dd757289a0802b03b2 Mon Sep 17 00:00:00 2001 From: Pierre Penninckx Date: Mon, 13 May 2024 09:00:38 -0700 Subject: [PATCH] Fix prometheus exporter not accessing nvme hard drives (#238) --- modules/blocks/monitoring.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/blocks/monitoring.nix b/modules/blocks/monitoring.nix index 2a63534..7d813ec 100644 --- a/modules/blocks/monitoring.nix +++ b/modules/blocks/monitoring.nix @@ -482,6 +482,11 @@ in port = 9112; listenAddress = "127.0.0.1"; }; + # https://github.com/nixos/nixpkgs/commit/12c26aca1fd55ab99f831bedc865a626eee39f80 + # TODO: remove when https://github.com/NixOS/nixpkgs/pull/205165 is merged + services.udev.extraRules = '' + SUBSYSTEM=="nvme", KERNEL=="nvme[0-9]*", GROUP="disk" + ''; services.prometheus.exporters.smartctl = { enable = true; port = 9115;