From 40ed8549b864dcba25ec74c2be11d7a97cdefe1c Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 29 Dec 2022 14:15:58 +0000 Subject: [PATCH] resolve some warnings --- ops/nixos/default.nix | 2 +- ops/nixos/swann/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/nixos/default.nix b/ops/nixos/default.nix index a3173f5f51..8a6d8db516 100644 --- a/ops/nixos/default.nix +++ b/ops/nixos/default.nix @@ -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; diff --git a/ops/nixos/swann/default.nix b/ops/nixos/swann/default.nix index 27bc589f2d..fa5c25e17d 100644 --- a/ops/nixos/swann/default.nix +++ b/ops/nixos/swann/default.nix @@ -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";