range_query
Evaluate a PromQL expression over a time range to retrieve Prometheus metrics. Specify query, start, end, and optional step; handles truncated results.
Instructions
[READ] Evaluate a PromQL expression over a time range.
Args: query: A PromQL expression. start: Range start (RFC-3339 or unix timestamp). end: Range end (RFC-3339 or unix timestamp). step: Resolution step (e.g. '60s', '5m'). target: Prometheus target name from config; omit for the default.
Returns an envelope with returned/limit/truncated. If
truncated is true the result is partial — narrow the selector or raise
the limit rather than treating it as complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| step | No | 60s | |
| query | Yes | ||
| start | Yes | ||
| target | No |