diff options
author | lassulus <lassulus@lassul.us> | 2019-08-13 18:55:08 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-08-13 18:55:08 +0200 |
commit | 3047fea88d2379011685be4e57a5b379778423c7 (patch) | |
tree | 23ad61badb3794cabf4a9cc9de89c3465cfec737 /krebs/2configs/shack/prometheus/unifi.nix | |
parent | 0699b41b05a1f9cd133c15c3aadf70c3a45170f6 (diff) | |
parent | 124b1d7639c404e5a58a9aef0f0bee1424f54a45 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/2configs/shack/prometheus/unifi.nix')
-rw-r--r-- | krebs/2configs/shack/prometheus/unifi.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/krebs/2configs/shack/prometheus/unifi.nix b/krebs/2configs/shack/prometheus/unifi.nix new file mode 100644 index 000000000..401ecb024 --- /dev/null +++ b/krebs/2configs/shack/prometheus/unifi.nix @@ -0,0 +1,10 @@ +{lib, ... }: +{ + services.prometheus.exporters.unifi = { + enable = true; + unifiAddress = "https://unifi.shack:8443/"; + unifiInsecure = true; + unifiUsername = "prometheus"; # needed manual login after setup to confirm the password + unifiPassword = lib.replaceChars ["\n"] [""] (builtins.readFile <secrets/shack/unifi-prometheus-pw>); + }; +} |