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