My data
I have a measurement that have the total memory of each VM on each host in megabytes (granularity of 30s). The memory of the VMs can be changed and also the host of the VMs can also be changed.
For example; I have two nodes and 4 VMs:
_time, host, vm, _value
2021-06-01 10:41:00 GMT+2, FPPW9406, VM01, 4096
2021-06-01 10:41:00 GMT+2, FPPW9406, VM02, 1024
2021-06-01 10:41:00 GMT+2, FPPW9407, VM03, 4096
2021-06-01 10:41:00 GMT+2, FPPW9407, VM04, 1024
2021-06-01 10:40:30 GMT+2, FPPW9406, VM01, 4096
2021-06-01 10:40:30 GMT+2, FPPW9406, VM02, 1024
2021-06-01 10:40:30 GMT+2, FPPW9407, VM03, 4096
2021-06-01 10:40:30 GMT+2, FPPW9407, VM04, 1024
2021-06-01 10:40:00 GMT+2, FPPW9406, VM01, 4096
2021-06-01 10:40:00 GMT+2, FPPW9406, VM02, 1024
2021-06-01 10:40:00 GMT+2, FPPW9407, VM03, 4096
2021-06-01 10:40:00 GMT+2, FPPW9407, VM04, 1024
What I want
I want to create a Grafana graph panel that shows one line.
The Line = Summation of all VMs memory over time (in a graph panel)
The raw data should looks like this:
_time, _value
2021-06-01 10:41:00 GMT+2, 10240
2021-06-01 10:40:30 GMT+2, 10240
2021-06-01 10:40:00 GMT+2, 10240
I tried a lot of queries but I found no solution for this and the aggregateWindow with fn = sum is not the solution.