10 cfg = config.services.prometheus.exporters.surfboard;
11 inherit (lib) mkOption types concatStringsSep;
16 modemAddress = mkOption {
18 default = "192.168.100.1";
20 The hostname or IP of the cable modem.
25 description = "Prometheus exporter for surfboard cable modem";
26 unitConfig.Documentation = "https://github.com/ipstatic/surfboard_exporter";
29 ${pkgs.prometheus-surfboard-exporter}/bin/surfboard_exporter \
30 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
31 --modem-address ${cfg.modemAddress} \
32 ${concatStringsSep " \\\n " cfg.extraFlags}