Display time range in a panel so it's really obvious

Currently running Grafana 10.1.5.

I’d like to create a cell/panel/widget that would show the selected date/time in BIG LETTERS in the middle of the dashboard so it’s EXCEEDINGLY OBVIOUS what time(s) are being queried.

Currently, I have a dashboard for sales that looks something like this:

Widgets 99
Veeblefitzers 12
Doodads 57

However, I get slacked all the time that the ‘data is wrong’. Upon investigation, 99% of the time, they didn’t set the date-time picker correctly. How can I make it SUPER OBVIOUS as to what date range is being returned with the data?

It appears a similar question was asked back in Nov 2019 (Show time range in panel (i.e. informational display for kiosk mode)) however, I didn’t see any follow-ups.

Thanks in advance!

For example - super ugly solution with text panel:

<h1 style="font-size: 50px; color: red; text-decoration:blink;">
${__from:date:YYYY-MM-DD HH:mm:ss} 
<br />
${__to:date:YYYY-MM-DD HH:mm:ss}
</h1>

But I would use more decent solution - formated from/to variables in panel title + I would save correct time range as default dashboard time range.

3 Likes

Oh, that’s fantastic. I hadn’t thought of the HTML bits. Lemme give that a go.

Appreciate the help!!!