query_range
Run PromQL range queries to retrieve time series data across a specified start and end time, with configurable resolution steps.
Instructions
Execute a PromQL range query to get time series data over a time range
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"start": "<start>"
},
"name": "query_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time (RFC3339 or Unix timestamp). Default: now | |
| step | No | Query resolution step (e.g., "15s", "1m", "5m") | 1m |
| query | Yes | PromQL query expression | |
| start | Yes | Start time (RFC3339 or Unix timestamp, or relative like "1h" for 1 hour ago) |