Skip to main content
GET
Read an instance's metrics

Authorizations

Authorization
string
header
required

An API key issued by Hive Compute support. See Authentication above for how to request one.

Path Parameters

id
string<uuid>
required

The instance's unique identifier.

Query Parameters

range
enum<string>
required

The time range to return, which also sets the step. The value is not case-sensitive: 24H and 24h are the same.

Available options:
1h,
6h,
24h,
7d

Response

The metrics of the instance over the range. The example shows only the two newest points of each series. A response has all the points.

What one instance used over the requested range. A group that the instance does not have is present with status NOT_APPLICABLE.

step_seconds
integer<int64>
required

Seconds between two points of a series: 60, 180, 300 or 3600 for the 1h, 6h, 24h and 7d ranges.

Example:

60

last_sample_at
string<date-time> | null
required

The time of the newest CPU sample of the instance in the range. Use it to see if the instance reports at all. null when the range has no CPU sample.

cpu_status
enum<string>
required

Whether cpu_percent has data.

Available options:
OK,
NOT_MONITORED,
STALE,
AGENT_NOT_INSTALLED,
AGENT_NOT_RESPONDING,
NOT_APPLICABLE,
UNSPECIFIED
cpu_percent
object
required

CPU time used, as a percentage of the instance's vCPUs, from 0 to 100. The average over each step.

memory
object
required

The RAM the instance used, against its limits.

disks
object[]
required

The disks the instance has, each with its own status. On a VM, the ROOT_DISK comes first. An instance with no known disk has an empty list.

network
object
required

Traffic into and out of the instance, in megabits per second (Mbps). 1 Mbps is 1,000,000 bits per second.

gpu_status
enum<string>
required

Whether gpus has data, for all the GPUs of the instance together. NOT_APPLICABLE on an instance with no GPU.

Available options:
OK,
NOT_MONITORED,
STALE,
AGENT_NOT_INSTALLED,
AGENT_NOT_RESPONDING,
NOT_APPLICABLE,
UNSPECIFIED
gpus
object[]
required

The GPUs that reported in the range. Empty when the instance has no GPU, or when no GPU of the instance reported. gpu_status tells which of the two applies. On a GPU VM, when one GPU reported, the list has all the GPUs of the instance. A container lists only the GPUs that reported. A Performance VM does not report GPU metrics, thus its list is always empty.