鉴于以下在InfluxDB中的测量,我想在Grafana中显示一个表格,其中前2个结果包含给定传感器最常出现的设备。因此以下数据的预期结果……
找到了查询。
选择top(total,3),device from(select sum(value)as incoming from incoming_events_by_device,其中sensor ='nice'AND time> now() - 30m group by device);