I recently started using Grafana via the Grafana Cloud Stack (I guess that makes it version 9.5.1?)
I am pushing my data to the provided Prometheus endpoint and everything works smoothly as expected expect for one thing which I am currently struggling to figure out how to solve it.
I want to log how long the last log of my devices is ago (in minutes). And as the title for each single display I want the name of my device which is provided inside the label.
For that I am using a Stat visualization. and query any of the metrics I expect from my devices and choose the following options for the Stat visualization:
Calculation: Last
Fields: Time
Unit: From Now
Everything else is left to its default value.
This works as expected but as the name I get “Time” for each of my devices and I can’t figure out how to select a the device name.
The issue I see is that the field “Time” does not include the labels which are only listed for the field “Value”. Until now I wasn’t able to add the labels to the filed “Time” which I think could solve the issue