Improve Flux query

This commit is contained in:
Agustin Godnic 2023-08-15 10:08:12 -03:00
parent 3123bccb98
commit f760196589
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ aggregatesVaaCount = from(bucket: "%s")
|> filter(fn: (r) => r["_measurement"] == "vaa_count_1h")
union(tables: [aggregatesVaaCount, lastVaaCount])
|> group()
|> aggregateWindow(every: 1h, fn: sum, createEmpty: true)
|> sort(columns: ["_time"], desc: true)
`