10 cfg = config.services.prometheus.exporters.zfs;
22 telemetryPath = mkOption {
26 Path under which to expose metrics.
31 type = with types; nullOr (listOf str);
34 Name of the pool(s) to collect, repeat for multiple pools (default: all pools).
41 path = [ config.boot.zfs.package ];
44 ${pkgs.prometheus-zfs-exporter}/bin/zfs_exporter \
45 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
46 --web.telemetry-path ${cfg.telemetryPath} \
47 ${concatMapStringsSep " " (x: "--pool=${x}") cfg.pools} \
48 ${concatStringsSep " \\\n " cfg.extraFlags}
51 PrivateDevices = false;