build_prometheus_query
Construct Prometheus queries with metric suggestions, operators, and functions for monitoring data analysis in Grafana.
Instructions
Help build a Prometheus query with suggestions for metric names and operators
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": {
"metric": "<metric>"
},
"name": "build_prometheus_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | ||
| filters | No | Label filters as key-value pairs | |
| function | No | Prometheus function (rate, sum, avg, etc.) | |
| timeWindow | No | Time window for functions (e.g., "5m") |