Please see my measurement of data consumption. It gets to 4GB, and then back again to zero. This can happen several times a day or not for a day.
I want to get the memory consumption per day. It should sum up all positive increments from 0h - 24h and ignore the jump back.
this isnt working, because it removes days with jumps:
SELECT (non_negative_difference(last(“value”))) FROM “measurement” WHERE $timeFilter GROUP BY time(1d)