How to plot a log parsed label value from loki datasource to grafana dashboard

Hi Folks,

I have loki logs with JSON parsing and I can see the labels correctly. For instance, temperature and pressure values are being parsed as shown below. The query used was {namespace="sensor-system",app="bme280"}

I wish to now create a dashboard showing temperature value with respect to time. I am reading up on LogQL and it seems that following query is all I need, however, this results in error. The query used was {namespace="sensor-system",app="bme280"} | unwrap temperature

What is the correct way to build dashboard for one of the labels in this case? Thanks.

AFAIK you still have to apply a function over the unwrapped range, e.g. last_over_time, see LogQL | Grafana Labs.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.