Add worf keys and zfs-exporter
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -55,6 +55,12 @@ in {
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "zfs";
|
||||
static_configs = [
|
||||
{ targets = ["127.0.0.1:${toString config.services.prometheus.exporters.zfs.port}"]; }
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user