VMs

GPU utilization, memory, power and temperature time series for a pod

Host-side GPU telemetry for a pod's GPUs (nvidia-smi on NVIDIA hosts, amd-smi on AMD), sampled on the node that runs it and returned as one continuous time grid. Every series and every GPU in a response shares that grid: the value at index i of any values array was measured at start plus i times stepSeconds, and a null means the node reported no sample at that point. The window ends now and covers only the periods this pod actually held the GPUs it is reported against, so a card that ran another customer's pod earlier never contributes a sample here. A GPU attached to a VM is passed through to the guest, so the host cannot read it. That case answers 200 with an accelerator status of unavailable and an empty gpus list rather than an error, and so do a pod that has not started yet, a pod that was not running in the selected range, and a metrics store that cannot be reached: the accelerator object is the answer, and the client renders its detail sentence. A host that stopped reporting while the pod is still running answers degraded with the history up to the last sample still attached. This operation is exposed as an agent tool by default, in the same class as a pod's burn rate: "how busy were my GPUs" is a read-only question about a resource the caller already owns.

get/v1/vms/{id}/metrics

Path parameters

idstring required

Query parameters

range'1h' | '6h' | '24h' | '7d'

Length of the window ending now. A longer range is returned at a coarser step, so the number of points stays bounded.

Response

The pod's GPU time series

endstring date-time required

last point of the returned grid. It is the newest grid point at or before the moment the request was served, so it can be up to one step older than that moment.

pointCountinteger required

length of the values array of every series in this response. 0 when nothing was queried, in which case start equals end.

range'1h' | '6h' | '24h' | '7d' required

the requested window length; the window always ends at the moment the request was served

startstring date-time required

first point of the returned grid, after the requested range was clipped to the periods this pod actually held GPUs on its current node. Equal to end when nothing was queried.

stepSecondsinteger required

seconds between grid points: 60 for a 1h range, 300 for 6h, 900 for 24h, 3600 for 7d

vmIdstring required

Changes

Changed in 2 of the 36 revisions of this API.11