From 2d874d39693d0ae16d90a1cd25471bf3cefb719c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Mar 2026 12:37:29 -0500 Subject: [PATCH] fix: two observability bugs from initial deployment Fix 1 - UnPoller 404 on UDM Pro: Remove :8443 from UP_UNIFI_DEFAULT_URL. UniFi OS devices (UDM Pro, UDM, UXG, CloudKey) use a different API path and do NOT use port 8443. URL should be https://10.42.1.1 (no port); unpoller handles the /proxy/network path internally for UniFi OS devices. Fix 2 - Grafana dashboards showing invalid datasource: Add uid = "prometheus" to the provisioned Prometheus datasource. Without an explicit UID, Grafana auto-generates one on first run. All dashboard JSON references datasource uid "prometheus" which only works if the provisioning explicitly sets that UID. --- hosts/unstable/hosea/default.nix | 1 + manifests/monitoring/unpoller.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/unstable/hosea/default.nix b/hosts/unstable/hosea/default.nix index a03413f..853b456 100644 --- a/hosts/unstable/hosea/default.nix +++ b/hosts/unstable/hosea/default.nix @@ -123,6 +123,7 @@ in { name = "Prometheus"; type = "prometheus"; + uid = "prometheus"; url = "https://prometheus.shire-zebra.ts.net"; isDefault = true; editable = false; diff --git a/manifests/monitoring/unpoller.yaml b/manifests/monitoring/unpoller.yaml index 7603fc5..e423953 100644 --- a/manifests/monitoring/unpoller.yaml +++ b/manifests/monitoring/unpoller.yaml @@ -50,7 +50,7 @@ spec: containerPort: 9130 env: - name: UP_UNIFI_DEFAULT_URL - value: "https://10.42.1.1:8443" + value: "https://10.42.1.1" - name: UP_UNIFI_DEFAULT_VERIFY_SSL value: "false" - name: UP_UNIFI_DEFAULT_USER -- 2.54.0