|> range (start: v.timeRangeStart, stop: v.timeRangeStop) in Grafana 11

Hi, until the old version of Grafana in the queries to create the variables for the dashboards I could use |> range (start: v.timeRangeStart, stop: v.timeRangeStop). But with Grafana 11 these queries no longer work. The only way to get values ​​is use static time range ( for example |> range (start: -1h) ) but that’s not what I want. The absurd thing is that the same old queries in Explore continue to work :face_with_diagonal_mouth:

Does anyone know how this query can be updated for Grafana 11?
image

Queries with such a time range still do work. See an example here

What do you have in Grafana’s time picker and in Inspect - Query tab?

Hi, I don’t know where I can access the Inspect - Query tab in the variables page. It could be very useful in troubleshooting.

I hadn’t written this yet, but I’m using Grafana as a docker container. By testing using the grafana/grafana:main image instead of the default latest, the variables started working again! :star_struck:

Just for the sake of completeness, now the running version is:

grafana:/usr/share/grafana$ grafana -v
grafana version 11.2.0-188177

while the faulty version was 11.1.0

1 Like