Render GPU Metrics Sparkline (PNG)
render_gpu_sparklineGenerates a PNG sparkline from a Prometheus range query, defaulting to GPU utilization for the last hour, for Kubernetes cluster monitoring.
Instructions
PNG sparkline from a Prometheus range query (default DCGM_FI_DEV_GPU_UTIL, last hour). Requires KUBECRAFT_PROMETHEUS_URL.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render_gpu_sparkline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | Range step (default 15s) | 15s |
| query | No | PromQL for range query (default: DCGM_FI_DEV_GPU_UTIL) | |
| duration_seconds | No | Window length in seconds (default 3600, max 86400) |