fetch_series
Retrieve time-series values for a metric field, with optional time-bucket aggregation or summary stats (avg/min/max/count) for large ranges.
Instructions
Fetch time series data for a single field.
start/end accept a unix timestamp or any string rrdtool understands
(e.g. "-1d", "now").
If resolution (seconds) is given, points are aggregated into
UTC-epoch-aligned buckets of that size (avg/min/max/count) instead of
returning every raw sample — use this for long time ranges to avoid
returning hundreds of raw points.
If summary is true, the whole range is aggregated into a single
avg/min/max/count instead of buckets or raw points. Cannot be combined
with resolution.
If top_n is given (requires resolution), only the N buckets with the
highest (or, with order="asc", lowest) top_by value ("avg", "min", or
"max") are returned, sorted by that value; total_buckets in the result
reports how many buckets existed before filtering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| host | Yes | ||
| field | Yes | ||
| group | Yes | ||
| order | No | desc | |
| start | Yes | ||
| top_n | No | ||
| plugin | Yes | ||
| top_by | No | avg | |
| summary | No | ||
| resolution | No |