1
0
Fork 0

Fix prometheus exporter not accessing nvme hard drives (#238)

This commit is contained in:
Pierre Penninckx 2024-05-13 09:00:38 -07:00 committed by GitHub
parent 2a18c0b28f
commit dc46ec8eda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;