I have a time range variable that I fetch from InfluxDB. I want that by default, the dashboard should select the time range based on the latest absolute value of this variable.
for ex: In the dashboard , I set a variable using following query
SHOW TAG VALUES WITH KEY = “DtFromRange”
It gives me values similar to this:12/21/21 15:23:49 . Similarly for
SHOW TAG VALUES WITH KEY = “DtToRange”
Now What I want to do is, in the dashboard time range in ‘From’ field I want to apply latest value from DtFromRange and in ‘To’ field latest value from DtToRange. By default always by the latest value of the query since there will be multiple values selected by the query.
Is this possible using Grafana+InfluxDB