working prometheus setup with processes

This commit is contained in:
Noah Masur
2023-07-16 01:04:52 +00:00
parent 9d4bf082c7
commit 76a7480a1d
3 changed files with 50 additions and 1 deletions

View File

@ -10,6 +10,12 @@
config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.kernelParams = [ "nohibernate" ];
boot.supportedFilesystems = [ "zfs" ];
services.prometheus.exporters.zfs.enable = true;
scrapeTargets = [
"127.0.0.1:${
builtins.toString config.services.prometheus.exporters.zfs.port
}"
];
};