Variable Interpolation
  • $start = replaced with seconds from the end time of Grafana's time selection.
  • $ds = replaced by grafana's recommend autodownsample interval.
  • Example: q("avg:$ds-avg:rate:os.cpu{host=*bosun*}", "$start", "")
  • Note: Since bosun's time is relative to now, the expression is executed as if Grafana's end time is "now".