The change in the counter over the time period. This is the raw or simple delta computed by accounting for resets and subtracting the last seen value from the first.
delta(summary CounterSummary) RETURNS DOUBLE PRECISION
For more information about counter aggregation functions, see the hyperfunctions documentation.
|summary||CounterSummary||The input CounterSummary from a counter_agg call|
|delta||DOUBLE PRECISION||The delta computed from the CounterSummary|
SELECTid,delta(summary)FROM (SELECTid,counter_agg(ts, val) AS summaryFROM fooGROUP BY id) t
Found an issue on this page?Report an issue!