Get VM metrics
get_vm_metricsRetrieve CPU, memory, network, and disk usage metrics for a VM over a specified number of hours to monitor performance and diagnose resource issues.
Instructions
Get CPU, memory, network, and disk usage metrics for a VM over the last N hours.
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": {
"id": "<id>",
"hours": "<hours>"
},
"name": "get_vm_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | VM identifier (UUID), from list_vms or create_vm. | |
| hours | Yes | How many hours of metrics history to return. | |
| sample_period | No | Sampling period in seconds. Omit for the API default. |