Use better InfluxDB queries

Use better InfluxDB queries by not using GROUP_BY when not necessary.
1 file changed