Add worf keys and zfs-exporter

This commit is contained in:
2023-07-25 19:15:19 +02:00
parent 61ae9b1c22
commit 61fce84a65
5 changed files with 31 additions and 11 deletions

View File

@@ -11,6 +11,7 @@
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
};
services.zfs.autoScrub.enable = true;
services.prometheus.exporters.zfs.enable = true;
# Network mounts (import)
fileSystems = {

View File

@@ -55,6 +55,12 @@ in {
}
];
}
{
job_name = "zfs";
static_configs = [
{ targets = ["127.0.0.1:${toString config.services.prometheus.exporters.zfs.port}"]; }
];
}
];
};
}