I’m pretty new to influxdb and trying to visualize data in grafana.
I have the following use case: I send the state of devices (managed by a server) to to the influxdb.
I use the Status History diagram in Grafana to visualize if a device was online or offline.
The problem I’m running into is: If the server does not send message (e.g. network issue) I assume the state offline for the the devices. But in the timeseries database there are no entries. So in grafana I get gaps.
yeah I think it’s a problem to store the online state as a boolean in the db.
Because I have to specifiy a fn in the aggrreateWindow function. And mean cannot act on booleans.
I switched to 0 and 1 for offline/online and now it works.