10 cfg = config.services.prometheus.exporters.kea;
20 (mkRenamedOptionModule [ "controlSocketPaths" ] [ "targets" ])
25 type = types.listOf types.str;
26 example = literalExpression ''
28 "/run/kea/kea-dhcp4.socket"
29 "/run/kea/kea-dhcp6.socket"
30 "http://127.0.0.1:8547"
34 Paths or URLs to the Kea control socket.
40 "kea-dhcp4-server.service"
41 "kea-dhcp6-server.service"
46 ExecStart = utils.escapeSystemdExecArgs (
48 (lib.getExe pkgs.prometheus-kea-exporter)
57 RuntimeDirectory = "kea";
58 RuntimeDirectoryPreserve = true;
59 RestrictAddressFamilies = [
60 # Need AF_UNIX to collect data