Interview Prep/Monitoring & Observability/Dashboard Design Standards

What is `$__rate_interval` and why should dashboards use it?

IntermediateProductionDashboard Design Standards
Answer

$__rate_interval is a Grafana variable that picks a range for rate() that is at least four times the scrape interval and grows with the dashboard step. Hardcoding [1m] breaks when the step is larger (you skip data) or when the scrape interval is 30s (too few samples, gaps). Set the data source's scrape interval correctly in Grafana for it to work.

All Monitoring & Observability questions

More on Dashboard Design Standards