In a graph object, how can I define a time range that includes a fixed start and end time?
For example, from 8:00am to 12:30am
Thanks
A
In a graph object, how can I define a time range that includes a fixed start and end time?
For example, from 8:00am to 12:30am
Thanks
A
Assuming you’re using Grafana 6, click on the time range selector top right,
choose “Custom time range” at the top of the list, then enter the day & time
you want in the “From” and “To” boxes in the format YYYY-MM-DD hh:mm:ss
If you’re still on Grafana 5, click on the time range selector and then just
enter your desired range in the “From” and “To” boxes; no need to choose
“Custom time range” in between.
Click on “Apply” and you’re done.
Antony.
Okay, but in that way I have to specify the day, but I want the day to be always today from 8:00 to 12:30.
Thanks
No, that’s not possible with Grafana directly.
The only way I can think of doing it is to select “today” as Grafana’s idea of
what the $timeFilter is, and then add an additional condition to your data
query (assuming the back-end supports this) along the lines of “and
hour(time)>7 and hour(time)<12 or (hour(time)=12 and minute(time)<30)”
Whether or not you can manage something like that will depend entirely on what
date/time functions your back-end data store query language supports.
Antony.