1 { config, lib, pkgs, options, ... }:
5 cfg = config.services.prometheus.exporters.zfs;
17 telemetryPath = mkOption {
21 Path under which to expose metrics.
26 type = with types; nullOr (listOf str);
29 Name of the pool(s) to collect, repeat for multiple pools (default: all pools).
36 path = [ config.boot.zfs.package ];
39 ${pkgs.prometheus-zfs-exporter}/bin/zfs_exporter \
40 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
41 --web.telemetry-path ${cfg.telemetryPath} \
42 ${concatMapStringsSep " " (x: "--pool=${x}") cfg.pools} \
43 ${concatStringsSep " \\\n " cfg.extraFlags}
46 PrivateDevices = false;