resolve some warnings

This commit is contained in:
Luke Granger-Brown 2022-12-29 14:15:58 +00:00
parent 73912b2f60
commit 40ed8549b8
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ let
};
}];
};
stockExporters = lib.mapAttrsToList (exporterName: exporter: mkExporter exporterName exporter.port) (lib.filterAttrs (exporterName: exporter: builtins.isAttrs exporter && exporterName != "snmp" && exporter.enable) sys.config.services.prometheus.exporters);
stockExporters = lib.mapAttrsToList (exporterName: exporter: mkExporter exporterName exporter.port) (lib.filterAttrs (exporterName: exporter: exporterName != "unifi-poller" && exporterName != "snmp" && builtins.isAttrs exporter && exporter.enable) sys.config.services.prometheus.exporters);
customExporters = lib.mapAttrsToList mkExporter sys.config.my.prometheus.additionalExporterPorts;
in
stockExporters ++ customExporters;

View file

@ -491,7 +491,7 @@ in {
openFirewall = false;
unifiPackage = depot.pkgs.unifi;
};
services.prometheus.exporters.unifi-poller = {
services.prometheus.exporters.unpoller = {
enable = true;
controllers = [{
url = "https://localhost:8443";