List VM's Metrics
GET/v1/compute/vms/{vm_id}/metrics
Read a VM’s resource metrics over an interval. Every series covers the same periods, so they line up index for index, and a period the VM reported no observation for carries a null value.
List VM's Metrics
curl https://api.nirvanalabs.io/v1/compute/vms/$VM_ID/metrics \
-H "Authorization: Bearer $NIRVANA_LABS_API_KEY"{
"aggregation": "mean",
"end_time": "2026-01-01T01:00:00Z",
"metrics": [
{
"metric": "compute.nirvanalabs.io/vm/cpu/utilization",
"points": [
{
"timestamp": "2026-01-01T00:05:00Z",
"value": 0.42
}
],
"unit": "ratio"
}
],
"period": "5m",
"start_time": "2026-01-01T00:00:00Z",
"vm_id": "123e4567-e89b-12d3-a456-426614174000"
}Returns Examples
{
"aggregation": "mean",
"end_time": "2026-01-01T01:00:00Z",
"metrics": [
{
"metric": "compute.nirvanalabs.io/vm/cpu/utilization",
"points": [
{
"timestamp": "2026-01-01T00:05:00Z",
"value": 0.42
}
],
"unit": "ratio"
}
],
"period": "5m",
"start_time": "2026-01-01T00:00:00Z",
"vm_id": "123e4567-e89b-12d3-a456-426614174000"
}