List VM Metric Descriptors
GET/v1/compute/metric_descriptors
Describe every metric a VM reports: its name, unit, the range its values fall in, and whether a value can be null. Read this instead of holding a list of metric names, so a metric published later is picked up without a client change.
List VM Metric Descriptors
curl https://api.nirvanalabs.io/v1/compute/metric_descriptors \
-H "Authorization: Bearer $NIRVANA_LABS_API_KEY"{
"items": [
{
"description": "Consumed CPU over the vCPU allocated to the VM.",
"max_value": 1,
"metric": "compute.nirvanalabs.io/vm/cpu/utilization",
"min_value": 0,
"nullable": true,
"unit": "ratio"
}
],
"pagination": {
"next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
"previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
"total_count": 125
}
}Returns Examples
{
"items": [
{
"description": "Consumed CPU over the vCPU allocated to the VM.",
"max_value": 1,
"metric": "compute.nirvanalabs.io/vm/cpu/utilization",
"min_value": 0,
"nullable": true,
"unit": "ratio"
}
],
"pagination": {
"next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
"previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
"total_count": 125
}
}