metrics_query
Run an instant PromQL query to retrieve current metric values from a configured observability backend, with optional evaluation time and target selection.
Instructions
Execute an instant PromQL query and return current metric values.
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": "metrics_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Evaluation timestamp (ISO 8601 or Unix epoch). Defaults to now. | |
| query | Yes | PromQL expression (e.g. rate(http_requests_total[5m])) | |
| target | No | Named backend instance to query (configured: default). Defaults to the primary. |