Queries | Grafana Labs
https://grafana.com/docs/grafana/latest/panels/queriesGrafana automatically calculates an appropriate interval and it can be used as a variable in templated queries. The variable is either in seconds: $__interval or in milliseconds: $__interval_ms. It is typically used in aggregation functions like sum or average. For example, a Prometheus query using the interval variable: rate (http_requests ...