Use Stat panel to display Time From Now correctly (bug?)

Source is an influxdb. I use this query to get the latest metric:
SELECT last(“percentage”) FROM “battery” WHERE (“vehicle” =~ /^Vehicle/) AND timeFilter GROUP BY time(__interval)

I’m using the Stat panel and configured it to display the Time field, which results in the human readable time of the last metric. I then changed the Unit to “From Now”, which should transform this value to something like “5 minutes ago”. However this last step doesn’t seem to work. It worked fine with the old Singlestat panel.

I’m using Grafana 7.1.4 and influxdb 1.8.2.

1 Like