k8s_metrics
Retrieve CPU and memory metrics for Kubernetes pods and nodes to monitor resource usage and performance in your cluster.
Instructions
Get Kubernetes resource metrics (CPU/Memory). Actions:
get_pod_metrics: Get resource metrics for pods
get_node_metrics: Get resource metrics for nodes
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": {
"action": "<action>"
},
"name": "k8s_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| namespace | No | Namespace (optional, for pod metrics) | |
| podName | No | Specific pod name (optional) | |
| nodeName | No | Specific node name (optional) |