Visualize time picker/time range in table title

  • What Grafana version and what operating system are you using?
    I am using Azure Managed Grafana

  • What are you trying to achieve?
    I would like to use the current time range, from the time drop down, as part of a table description. When the user change the time range, I would also like to change the table title or description.

  • How are you trying to achieve it?
    I have been playing with all kind of variables like $__from and $__to

  • What happened?
    Either I get the dates in UNIX timeframe or I dont get anything else.

  • What did you expect to happen?
    I would like the result to be for example “Last 30 minutes” or “Last 6 hours”.

Thanks!

Hi @andersbe,
I cound’t print “Last 6 hours” but I managed to print:

Code to add to panel title:

From: ${__from:date:DD-MM-YYYY HH_mm_ss} ------------- To: ${__to:date:DD.MM.YYYY HH_mm_ss}

Link to documentation about global variables:

Best regards,
ldrascic