Hi there, i’m new to flux. I’ve got a very simple question. Suppose my data is like this:
measurement,tag=tag1 value=1 2019-07-01
measurement,tag=tag2 value=2 2019-07-01
measurement,tag=tag3 value=3 2019-07-01
measurement,tag=tag1 value=4 2019-07-01
measurement,tag=tag2 value=5 2019-07-01
measurement,tag=tag3 value=6 2019-07-01
i’d like to get the total amount of value in one day, which is:
value=21 2019-07-01
but when i use the query:
from(bucket: "bucket")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> aggregateWindow(every: 24h, fn: sum)
the db returns me like this:
tag=tag1 value=5 2019-07-01
tag=tag2 value=7 2019-07-01
tag=tag3 value=9 2019-07-01
So my question is how to sum the value across tags?
i’m using version 2.0.0-alpha