From 65c2fce8a72384bbf0132016f640f26dd6429fe5 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 6 Nov 2020 05:02:05 +0000 Subject: [PATCH] swann: add unifi-poller --- ops/nixos/swann/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ops/nixos/swann/default.nix b/ops/nixos/swann/default.nix index 7b427f0847..97d457c1d9 100644 --- a/ops/nixos/swann/default.nix +++ b/ops/nixos/swann/default.nix @@ -119,6 +119,15 @@ in { openPorts = false; unifiPackage = pkgs.unifiBeta; }; + services.prometheus.exporters.unifi-poller = { + enable = true; + controllers = [{ + url = "https://localhost:8443"; + verify_ssl = false; + user = "unifipoller"; + pass = pkgs.writeTextFile { name = "unifipoller-password"; text = "unifipoller"; }; + }]; + }; networking.firewall = { interfaces.ens-general = {