Hi,
I’m having trouble with a simple plot in Grafana.
I’ve got an influxdb that looks like this:
time calibratedHumidity sensorname temperature voltage
---- ------------------ ---------- ----------- -------
1635724024000000000 48.19 A4:C1:38:D2:DF:B1 20.41 2.949
1635724028000000000 48.19 A4:C1:38:D2:DF:B1 20.41 2.949
1635821657000000000 44 A4:C1:38:43:7D:59 22 2.915
1635821658000000000 46.92 A4:C1:38:D2:DF:B1 21.95 2.898
1635821664000000000 44 A4:C1:38:43:7D:59 21.9 2.915
1635821665000000000 46.98 A4:C1:38:D2:DF:B1 21.94 2.894
1635821674000000000 44 A4:C1:38:43:7D:59 21.9 2.914
And I’m trying to make a plot with a meaningful legend, showing the colour that indicates the temperature and humidity for the two sensors (…DF:B1 and …7D:59)
At the moment, it comes up as shown here “temp.mean” and “temp.mean” for both temperature and humidity.
If I add any alias to the query, the line of data for that query disappears.
If I try to ‘group by’ tag(sensorname)
, the line of data for that query disappears.
Is this expected behaviour?
Thanks,
R