No data from Unifi in Grafana

Hi all,

I have Grafana, Prometheus and Unifi-Poller installed in a Portainer Stack on my NAS.

I have another Stack containing Unifi Network Application (UNA) that contains just one AP.

I’m trying to get the data from the UNA into Grafana and that seems to be happening as I can run queries via Explore and I’m getting results.

However, I have tried all the Unifi/Prometheus Dashboards at the Grafana Website and none of them show any data at all.

Are these Dashboards incompatible with UNA, or should I be doing this another way?

TIA

EDIT: Some Unifi-Poller log data:

2025/04/22 15:47:59.347930 updateweb.go:223: [DEBUG] Collecting controller data: https://192.168.10.2:8443 ()
2025/04/22 15:47:59.347989 updateweb.go:223: [DEBUG] Polling controller: https://192.168.10.2:8443 ()
2025/04/22 15:47:59.348090 updateweb.go:223: [DEBUG] Requesting https://192.168.10.2:8443/api/stat/sites, with params: false, cookies: 1
2025/04/22 15:47:59.353691 updateweb.go:223: [DEBUG] Requested https://192.168.10.2:8443/api/stat/sites: elapsed 6ms, returned 766 bytes
2025/04/22 15:47:59.353957 updateweb.go:223: [DEBUG] Found 1 site(s): default
2025/04/22 15:47:59.354131 updateweb.go:223: [DEBUG] Polling Controller, retreiving UniFi Clients, site Hines House (default) 
2025/04/22 15:47:59.354202 updateweb.go:223: [DEBUG] Requesting https://192.168.10.2:8443/api/s/default/stat/sta, with params: false, cookies: 1
2025/04/22 15:47:59.357627 updateweb.go:223: [DEBUG] Requested https://192.168.10.2:8443/api/s/default/stat/sta: elapsed 3ms, returned 19411 bytes
2025/04/22 15:47:59.359836 updateweb.go:223: [DEBUG] Requesting https://192.168.10.2:8443/api/s/default/stat/device, with params: false, cookies: 1
2025/04/22 15:47:59.364472 updateweb.go:223: [DEBUG] Requested https://192.168.10.2:8443/api/s/default/stat/device: elapsed 5ms, returned 16390 bytes
2025/04/22 15:47:59.365740 updateweb.go:223: [DEBUG] Unmarshalling Device Type: uap, Model: UAPL6, site Hines House (default) 
2025/04/22 15:47:59.372483 logger.go:19: [INFO] UniFi Measurements Exported. Site: 1, Client: 12, UAP: 1, USG/UDM: 0, USW: 0, DPI Site/Client: 0/0, Desc: 132, Metric: 438, Err: 0, 0s: 159, Req/Total: 20.1ms / 24.5ms
2025/04/22 15:48:14.347550 updateweb.go:223: [DEBUG] Collecting controller data: https://192.168.10.2:8443 ()
2025/04/22 15:48:14.347573 updateweb.go:223: [DEBUG] Polling controller: https://192.168.10.2:8443 ()
2025/04/22 15:48:14.347611 updateweb.go:223: [DEBUG] Requesting https://192.168.10.2:8443/api/stat/sites, with params: false, cookies: 1
2025/04/22 15:48:14.349974 updateweb.go:223: [DEBUG] Requested https://192.168.10.2:8443/api/stat/sites: elapsed 2ms, returned 766 bytes
2025/04/22 15:48:14.350067 updateweb.go:223: [DEBUG] Found 1 site(s): default
2025/04/22 15:48:14.350077 updateweb.go:223: [DEBUG] Polling Controller, retreiving UniFi Clients, site Hines House (default) 
2025/04/22 15:48:14.350119 updateweb.go:223: [DEBUG] Requesting https://192.168.10.2:8443/api/s/default/stat/sta, with params: false, cookies: 1
2025/04/22 15:48:14.351327 updateweb.go:223: [DEBUG] Requested https://192.168.10.2:8443/api/s/default/stat/sta: elapsed 1ms, returned 19380 bytes
2025/04/22 15:48:14.351932 updateweb.go:223: [DEBUG] Requesting https://192.168.10.2:8443/api/s/default/stat/device, with params: false, cookies: 1
2025/04/22 15:48:14.353370 updateweb.go:223: [DEBUG] Requested https://192.168.10.2:8443/api/s/default/stat/device: elapsed 1ms, returned 16368 bytes
2025/04/22 15:48:14.353777 updateweb.go:223: [DEBUG] Unmarshalling Device Type: uap, Model: UAPL6, site Hines House (default) 
2025/04/22 15:48:14.356020 logger.go:19: [INFO] UniFi Measurements Exported. Site: 1, Client: 12, UAP: 1, USG/UDM: 0, USW: 0, DPI Site/Client: 0/0, Desc: 132, Metric: 438, Err: 0, 0s: 162, Req/Total: 7ms / 8.4ms

Hi,
If the data is displayed in the Explore in Grafana, then the data is accessible in Grafana. What you need to do is check the variables of the dashboards you’re importing. Most of the dashboards have:

  1. Datasource variable (which might not have picked your datasource, hence provide “No Data”)
  2. Instance variable (which might have some obsolete metric name, hence yielding “No Data”)

If the first one is correct or the datasource variable is not present, check the second one. If it’s not present, check the queries of the panels - they might be using obsolete metric names. If it is there, execute the query in explore mode - does it yield any results? If so, what are the results and does the label required in the variable exist? If the query does not provide results, you need to debug why.

Thank you for your reply.

I have managed to find the issue with the no data. I had the incorrect Prometheus namespace name in my Unifi-Poller Portainer Stack. unifipoller, instead of unpoller.

Thanks again.