From eab8c956b5375598e75456678adbc2e28a9bcf64 Mon Sep 17 00:00:00 2001 From: stitchy Date: Fri, 10 Oct 2025 00:46:16 -0700 Subject: [PATCH] feat(grafana): add unifi polling via unpoller --- hosts/tanzanite/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hosts/tanzanite/default.nix b/hosts/tanzanite/default.nix index 34b64ac..b89fd80 100644 --- a/hosts/tanzanite/default.nix +++ b/hosts/tanzanite/default.nix @@ -125,6 +125,16 @@ in { node = { enable = true; }; + unpoller = { + enable = true; + controllers = [{ + user = "flyingstitchman"; + pass = "/persist/unifi-pass.txt"; + verify_ssl = false; + url = "https://localhost:7443"; + save_dpi = true; + }]; + }; }; globalConfig.scrape_interval = "10s"; scrapeConfigs = [{ @@ -139,8 +149,16 @@ in { targets = [ "localhost:9008"]; }]; } + { + job_name = "unpoller"; + static_configs = [{ + targets = [ "localhost:9130"]; + }]; + } ]; }; + unpoller = { + }; }; networking.firewall = {