How Does Grafana Refresh Data on Dashboard Reload?

Grafana has special $__from and $__to variables that at all times hold the values specified in the time picker.

To be precise about your question – Infinity doesn’t adjust anything in response to the time picker unless you use the variables. So for example, if the way you build the URL that infinity is fetching includes these variables above, then whenever you adjust the time picker, the URL infinity needs to load changes, and hence it will trigger a refresh.

If you just load some standard URL with no variable reference, and then you change the time picker, nothing will refresh because what you’ve told Infinity to load doesn’t in any way depend on the time picker.

Hope this helps

See this answer for a concrete example in SQL context: