get_pod_metrics
Retrieve a Kubernetes pod's CPU, memory, restart count, or network traffic metrics by specifying pod name, namespace, and metric type.
Instructions
Get metrics for a Kubernetes pod (CPU, memory, restarts, network).
Args: pod_name: Pod name or regex pattern namespace: Kubernetes namespace metric_type: One of: cpu, memory, restarts, network_rx, network_tx
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": {
"pod_name": "<pod_name>"
},
"name": "get_pod_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod_name | Yes | ||
| namespace | No | default | |
| metric_type | No | cpu |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |