get_guest_metrics
Retrieve CPU, memory, network, and disk I/O metrics for a specified VM or container over a chosen timeframe (hour, day, week, month, year) to assess resource usage and performance trends.
Instructions
Get resource usage metrics (CPU, memory, network, disk I/O) for a VM or container.
Args: vmid: The numeric ID of the VM or container. timeframe: Time range for metrics. Options: 'hour', 'day', 'week', 'month', 'year'.
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": {
"vmid": "<vmid>"
},
"name": "get_guest_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmid | Yes | ||
| timeframe | No | hour |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |