influxdb/cmd/influxd
Jonathan A. Sternberg 6afc2a77a5 Implement cumulative_sum() function
The `cumulative_sum()` function can be used to sum each new point and
output the current total. For the following points:

    cpu value=2 0
    cpu value=4 10
    cpu value=6 20

This would output the following points:

    > SELECT cumulative_sum(value) FROM cpu
    time    value
    ----    -----
    0       2
    10      6
    20      12

As can be seen, each new point adds to the sum of the previous point and
outputs the value with the same timestamp.

The function can also be used with an aggregate like `derivative()`.

    > SELECT cumulative_sum(mean(value) FROM cpu WHERE time >= now() - 10m GROUP BY time(1m)
2016-10-07 10:11:53 -05:00
..
backup Always use the demo config when outputting a new config 2016-07-07 16:29:24 -05:00
help Allow any variant of the help option to trigger the help 2016-07-07 16:54:26 -05:00
restore Always use the demo config when outputting a new config 2016-07-07 16:29:24 -05:00
run Implement cumulative_sum() function 2016-10-07 10:11:53 -05:00
main.go export wal files when exporting shard data 2016-09-23 15:09:17 -05:00