Quantcast
Channel: InfluxDB - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 199

How to get the start or stop of time window ($timeFilter work, $timeTo not)

$
0
0

Using Grafana cloud with Influxdb3/InfluxQL. Trying to get specific time periods within a window. This works:
SELECT time, extruder_target FROM "gantry" WHERE $timeFilter
However, this does not:
SELECT time, extruder_target FROM "gantry" WHERE time > $timeFrom and time < $timeTo
The error I get is:
InfluxDB returned error: failed to parse query: missing parameter: timeFrom

I did not find the documentation that would explain that the $timeFilter macro would exist or work, I looked at Query Editor | Grafana Cloud documentation. Also, no mention of $timeTo either, so that was just a guess from my part.

So, how do I get the start&end times of the time picker period with InfluxQL?

7 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 199

Trending Articles