What are Grafana's built-in time variables?

IntermediateConceptGrafana
Answer
  • $__interval: auto step based on time range and panel width.
  • $__rate_interval: safe range for rate() (see Q75).
  • $__range: the whole dashboard time range (increase(x[$__range]) for "total in selected period").
  • $__from / $__to: epoch ms of the range.
  • $__timeFilter(column): SQL datasource time filter macro.
All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Grafana