9 cfg = config.services.prometheus.exporters.kea;
18 (mkRenamedOptionModule [ "controlSocketPaths" ] [ "targets" ])
23 type = types.listOf types.str;
24 example = literalExpression ''
26 "/run/kea/kea-dhcp4.socket"
27 "/run/kea/kea-dhcp6.socket"
28 "http://127.0.0.1:8547"
32 Paths or URLs to the Kea control socket.
38 "kea-dhcp4-server.service"
39 "kea-dhcp6-server.service"
44 ExecStart = utils.escapeSystemdExecArgs ([
45 (lib.getExe pkgs.prometheus-kea-exporter)
46 "--address" cfg.listenAddress
48 ] ++ cfg.extraFlags ++ cfg.targets);
49 RuntimeDirectory = "kea";
50 RuntimeDirectoryPreserve = true;
51 RestrictAddressFamilies = [
52 # Need AF_UNIX to collect data