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 = {