prometheus_query
Execute PromQL queries to retrieve current metric values from Prometheus, enabling real-time monitoring of system performance and health.
Instructions
Execute an instant PromQL query and return the current value(s). Best for checking current state of a metric (e.g. CPU usage right now).
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The PromQL expression to evaluate. | |
| time | No | Evaluation timestamp as RFC3339 or Unix timestamp. Defaults to current time. |