diff options
| author | Max Audron <audron@cocaine.farm> | 2025-08-01 00:47:20 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-08-01 00:47:20 +0200 |
| commit | 4e6b076f1e629670229e6e3c53e43f818f4f2d62 (patch) | |
| tree | f960e0cf45d2f00d5128d10db8ef73164eb11dbd /modules/zfs/default.nix | |
| parent | update garage to 2.0 (diff) | |
more monitoring & scrape config shortcuts
Diffstat (limited to '')
| -rw-r--r-- | modules/zfs/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/zfs/default.nix b/modules/zfs/default.nix index 75018ea..ac28159 100644 --- a/modules/zfs/default.nix +++ b/modules/zfs/default.nix @@ -15,6 +15,16 @@ autoScrub.pools = [ "rpool" ]; }; + services.prometheus.exporters = { + zfs.enable = true; + smartctl.enable = true; + }; + + # For allowing smartctl prometheus exporter access to nvme disks + services.udev.extraRules = '' + SUBSYSTEM=="nvme", KERNEL=="nvme[0-9]*", GROUP="disk" + ''; + fileSystems = { "/" = { device = "rpool/root"; |
