Samples
Get the rate of change perid over the entire recorded interval.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Calculate the rate of change from a gauge aggregate
id over the entire recorded interval.
SELECT
id,
rate(summary)
FROM (
SELECT
id,
gauge_agg(ts, val) AS summary
FROM foo
GROUP BY id
) t
rate(
summary GaugeSummary
) RETURNS DOUBLE PRECISION
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
summary | GaugeSummary | - | ✔ | A gauge aggregate created using gauge_agg |
| Column | Type | Description |
|---|---|---|
| rate | DOUBLE PRECISION | The rate of change of the gauge |