Cannot query for data that is outside the dashboard time range for Azure Monitor datasource

  • What Grafana version and what operating system are you using?
    v9.4.12, Win 11

  • What are you trying to achieve?
    Trying to query for data in my Log Analytics workspace that is outside the bounds of the dashboard time range

  • How are you trying to achieve it?
    I select my log analytics as a resource and I’m trying to query just the time before the dashboard time range.

// cannot see data past $__timeFrom()
let lookTimeBefore = $__timeFrom() + -6h;

| where TimeGenerated > lookTimeBefore
| summarize count() by TimeGenerated

In the sample gif, I have data every hour time stamp. I should expect lookTimeBefore should show me that for the dashboards last x hours, it should show x + 6 more results, but only shows x results.

  • What happened?
    I can only query for the data that is within the timerange

  • What did you expect to happen?
    I should be able to see the data outside the dashboard time range if it’s specified in query