Configure Time Format in X-axis

  • What Grafana version and what operating system are you using?

Grafana v9.0.3 via Docker (grafana:grafana/latest)

  • What are you trying to achieve?

An X-axis where I can configure the time format. I have a panel showing the “Today” relative time range. When I do this, the datapoint for 00:00 the next day is not showing up (note the gap from 23:00 to the end of the graph)

I presume this is happening because the “Today” relative time range goes from 00:00:00 - 23:59:59 of the current day. My data points appear at the top of every hour. To get around this, I have updated my time range to be From: now/d, To: now/d+1s. The time range now goes from 00:00:00 (today) - 00:00:00 (tomorrow). This is good, except now the time scale on the X-axis includes the date, and not just the hours (note the X-axis)

  • How are you trying to achieve it?

I have looked in the panel configurations, transformations, etc., and I can’t find a way to modify the way the X-axis time is formatted. Please let me know if this is possible or covered in another post. Thanks for your help!