query_prometheus_range
Execute PromQL range queries on OpenShift Prometheus to retrieve metrics over a specified time interval, with configurable start, end, and step.
Instructions
Execute a PromQL range query. start/end in ISO8601 or Unix timestamp; step e.g. '5m'.
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": {
"expr": "<expr>",
"start": "<start>",
"end": "<end>"
},
"name": "query_prometheus_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| expr | Yes | ||
| step | No | 5m | |
| start | Yes | ||
| cluster | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |