From a39b9a4bf6ada90eb7e75f9181af0985ba303a9a Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Mon, 16 Mar 2026 15:48:24 -0700 Subject: [PATCH] Fix UnPoller dashboard datasource UIDs, drop DPI dashboard Upstream dashboards hardcode a different Prometheus datasource UID. Patch them at download time to match our 'prometheus' UID. Remove the Client DPI dashboard since DPI is not enabled on the UX7. Co-Authored-By: Claude Opus 4.6 (1M context) --- argocd/manifests/grafana/deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/argocd/manifests/grafana/deployment.yaml b/argocd/manifests/grafana/deployment.yaml index 74315d7..9172991 100644 --- a/argocd/manifests/grafana/deployment.yaml +++ b/argocd/manifests/grafana/deployment.yaml @@ -103,7 +103,6 @@ spec: DEST="/tmp/dashboards/UniFi" mkdir -p "$DEST" for f in \ - "UniFi-Poller_ Client DPI - Prometheus.json" \ "UniFi-Poller_ Client Insights - Prometheus.json" \ "UniFi-Poller_ Network Sites - Prometheus.json" \ "UniFi-Poller_ UAP Insights - Prometheus.json" \ @@ -112,6 +111,9 @@ spec: ; do wget -q -O "$DEST/$f" "$BASE_URL/$(echo "$f" | sed 's/ /%20/g')" done + # Fix datasource UIDs to match our Prometheus instance + sed -i 's/"uid": *"bdkj55oguty4gd"/"uid": "prometheus"/g' "$DEST"/*.json + sed -i 's/"uid": *"\${DS_PROMETHEUS}"/"uid": "prometheus"/g' "$DEST"/*.json echo "Fetched $(ls "$DEST" | wc -l) UnPoller dashboards" securityContext: allowPrivilegeEscalation: false