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.
More on Dashboard Design Standards
What is the standard layout for a service dashboard?BeginnerWhat is the difference between RED and USE, and where do you apply each?BeginnerWhat anti-patterns do you see most in Grafana dashboards?BeginnerHow do you structure dashboards so engineers can drill down quickly?IntermediateHow do you use template variables safely on large environments?IntermediateHow do you show latency correctly on a dashboard?Intermediate