Multiple aggregations over a relative range
kairosdb_aggregateCompute min, max, avg, and other aggregations for a KairosDB metric over a relative time range with optional tag filters, returning each statistic as a separate series.
Instructions
Computes several aggregations (min, max, avg, etc.) in a single request over a relative time range.
Use cases:
"Give me the min/max/avg CPU usage on server web-01 over the last 7 days, hourly"
"Daily request latency statistics over the last 30 days"
Args:
metric_name: Exact metric name
tags: Tag filters
range_value / range_unit: Time range (default: 24 hours)
aggregators: List of functions (default: [avg, min, max])
sampling_value / sampling_unit: Computation window (default: 1 hour)
response_format: "markdown" or "json"
Returns: One series per aggregator with statistics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | KairosDB tag filters. Ex: {"host": ["web-01"], "environment": ["production"]}. Each tag value is an array of strings (logical OR). | |
| range_unit | No | Time unit: milliseconds | seconds | minutes | hours | days | weeks | months | years | hours |
| aggregators | No | List of aggregation functions to compute in a single request (e.g. [avg, min, max]) | |
| metric_name | Yes | Exact KairosDB metric name (e.g. server.cpu_usage, network.latency) | |
| range_value | No | Numeric value of the relative time range (e.g. 7 for 7 days) | |
| sampling_unit | No | Aggregation window unit | hours |
| sampling_value | No | Aggregation window size (e.g. 1 for 1 hour) | |
| response_format | No | markdown |