unpoller / dashboards

UniFi Poller Grafana Dashboards
https://unifipoller.com
MIT License
26 stars 12 forks source link

Grafana charts are empty when time interval is small #30

Closed outofsight closed 6 months ago

outofsight commented 8 months ago

For example USW Insights, Data Transfer chart show no data when time range is 2 days, but if I change the time range to 1 week suddenly the data appear.

It seems something related to a recent change. I run unpoller since 1y and I never noticed this behavior.

Any idea?

Seems related to scaping interval (Mine is set to 30s in Grafana Agent) and minimum interval in dashboard (set to 30s on empty charts and to 2min on others)

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

SuperQ commented 6 months ago

This is more a datasource problem than a chart problem. I configure 15s scrape intervals, which matches the Grafana datasource default for my Prometheus server.

In Grafana (/connections/datasources) you can configure the default minimum scrape interval at the datasource level.

image

SuperQ commented 6 months ago

Oh, I see, it seems like the dashboards are also incorrectly configured with the wrong interval variable.

outofsight commented 6 months ago

Oh, I see, it seems like the dashboards are also incorrectly configured with the wrong interval variable.

exactly, the dashboards were not using the proper variable