rate()

    For more information about counter aggregation functions, see the hyperfunctions documentation.

    NameTypeDescription
    rateDOUBLE PRECISIONThe per second observed rate computed from the CounterSummary
    1. SELECT
    2. id,
    3. FROM (
    4. SELECT
    5. id,
    6. counter_agg(ts, val) AS summary
    7. FROM foo
    8. GROUP BY id