-
Notifications
You must be signed in to change notification settings - Fork 1
/
queries_grafana.txt
36 lines (30 loc) · 1.21 KB
/
queries_grafana.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from(bucket:"esp32")
|> range(start: -30d)
|> filter(fn:(r) => r["_measurement"] == "test-august4-2")
|> filter(fn:(r) => r["_field"] == "RSSI")
|> drop(columns: ["Device"])
|> drop(columns: [ "GPS"])
from(bucket:"esp32")
|> range(start: -30d)
|> filter(fn:(r) => r["_measurement"] == "test-august4-2")
|> filter(fn:(r) => r["_field"] == "Gas" or r["_field"] == "Gas_predicted")
|> drop(columns: ["Device"])
|> drop(columns: [ "GPS"])
from(bucket:"esp32")
|> range(start: -30d)
|> filter(fn:(r) => r["_measurement"] == "test-august4-2")
|> filter(fn:(r) => r["_field"] == "AQI")
|> drop(columns: ["Device"])
|> drop(columns: [ "GPS"])
from(bucket:"esp32")
|> range(start: -30d)
|> filter(fn:(r) => r["_measurement"] == "test-august4-2")
|> filter(fn:(r) => r["_field"] == "Humidity" or r["_field"] == "Humidity_predicted")
|> drop(columns: ["Device"])
|> drop(columns: [ "GPS"])
from(bucket:"esp32")
|> range(start: -30d)
|> filter(fn:(r) => r["_measurement"] == "test-august4-2")
|> filter(fn:(r) => r["_field"] == "Temperature" or r["_field"] == "Temperature_predicted")
|> drop(columns: ["Device"])
|> drop(columns: [ "GPS"])