prometheus_query_range
Execute PromQL range queries to analyze metric changes over time, retrieving time series data for monitoring and troubleshooting.
Instructions
Execute a PromQL range query and return a time series. Use this to see how a metric changed over time.
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>"
},
"name": "prometheus_query_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The PromQL expression to evaluate. | |
| start | No | Start time as RFC3339 or Unix timestamp. Defaults to 1 hour ago. | |
| end | No | End time as RFC3339 or Unix timestamp. Defaults to now. | |
| step | No | Query resolution step, e.g. '60s', '5m', '1h'. Defaults to '60s'. |