resolve some warnings
This commit is contained in:
parent
73912b2f60
commit
40ed8549b8
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
customExporters = lib.mapAttrsToList mkExporter sys.config.my.prometheus.additionalExporterPorts;
|
||||||
in
|
in
|
||||||
stockExporters ++ customExporters;
|
stockExporters ++ customExporters;
|
||||||
|
|
|
@ -491,7 +491,7 @@ in {
|
||||||
openFirewall = false;
|
openFirewall = false;
|
||||||
unifiPackage = depot.pkgs.unifi;
|
unifiPackage = depot.pkgs.unifi;
|
||||||
};
|
};
|
||||||
services.prometheus.exporters.unifi-poller = {
|
services.prometheus.exporters.unpoller = {
|
||||||
enable = true;
|
enable = true;
|
||||||
controllers = [{
|
controllers = [{
|
||||||
url = "https://localhost:8443";
|
url = "https://localhost:8443";
|
||||||
|
|
Loading…
Reference in a new issue