Interview Prep/Monitoring & Observability/Grafana dashboards and data sources

Panels using `$__rate_interval` show nothing at short time ranges

IntermediateTroubleshootingGrafana dashboards and data sources
Answer

Likely causes → The data source Scrape interval setting is lower than the real scrape interval, so $__rate_interval becomes too small to hold 2 samples.

Diagnose → Query inspector shows the expanded interval (e.g. [1m] for a 60s scrape).

Fix → Set the Prometheus data source Scrape interval to the real value (e.g. 60s), so $__rate_interval = max(4 × scrape, interval + scrape).

Prevent → Provision data sources with the correct timeInterval.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Grafana dashboards and data sources