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.

2 Likes

@nheinemans Were you able to solve this problem?

Hi @genehorecka,

It seems that the original post is about 2 years old. If you are having a similar problem then maybe post here with more information and screenshots so that the community members can help you.

1 Like