Returns what one of your instances used over a recent time range: CPU,
memory, disks, network and GPUs.
Each metric is a series of points, oldest first, with one point per
step. The step depends on range:
range
Window
step_seconds
Points
1h
The last hour
60
61
6h
The last 6 hours
180
121
24h
The last 24 hours
300
289
7d
The last 7 days
3600
169
A series with data has one point per step of the window, plus the
step that is still in progress, as Points shows. A series with no
data has no points.
A point covers the step that ends at its unix_seconds, and never
less than 3 minutes. Thus on the 1h range, each point covers the 3
minutes that end at it. Each series says if its values are averages
or the highest value in the step. When the instance ran for only part
of a step, an average covers only the part when it ran. On a
Performance VM, when the instance stops and starts again in one step,
the averages of that step also include the time when it did not run.
Thus they are lower. On a container, the step it started in also
includes what it used while it started. The newest point is the step
that is still in progress, so its value can change on the next call.
On a GPU VM, a CPU VM or a container, cpu_percent, in_mbps and
out_mbps come from counters sampled about every 30 seconds, and
samples can be up to 2 minutes apart. Each value is the change between
samples divided by the time between those samples, not by the length
of the step. Thus steady use reads true, but a burst shorter than a
few minutes can read higher or lower than its average over the step,
and can appear one point late. For the same reason, in_mbps or
out_mbps multiplied by the step does not give the bytes transferred.
A step with no sample has value: null. A gap is never sent as 0,
so a 0 is a measured zero.
Every field of the response is always present. A value that is not
known is null, never absent. The status of each group tells you
if the group has data at all; see UsageStatus.
An instance that does not exist and an instance that is not yours both
return 404.
{
"error": {
"code": "VALIDATION_ERROR",
"message": "[{\"property\":\"size\",\"constraints\":[\"size must not be greater than 200\"]}]",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "The service is temporarily unavailable. Try again later.",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
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.
Show child attributes
memory
object
required
The RAM the instance used, against its limits.
Show child attributes
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.
Show child attributes
network
object
required
Traffic into and out of the instance, in megabits per second (Mbps).
1 Mbps is 1,000,000 bits per second.
Show child attributes
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.
{
"error": {
"code": "VALIDATION_ERROR",
"message": "[{\"property\":\"size\",\"constraints\":[\"size must not be greater than 200\"]}]",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "The service is temporarily unavailable. Try again later.",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Hivenet Docs","colors":{"primary":"#D46E35","light":"#D46E35","dark":"#D46E35"},"logo":{"light":"https://mintcdn.com/hivenet/TWEg6sSBW1tiOeI2/logo/hivenet-logo-color-light.svg?fit=max\u0026auto=format\u0026n=TWEg6sSBW1tiOeI2\u0026q=85\u0026s=4fc5fd5b28244278713ed9ad46ba2e31","dark":"https://mintcdn.com/hivenet/TWEg6sSBW1tiOeI2/logo/hivenet-logo-color-dark.svg?fit=max\u0026auto=format\u0026n=TWEg6sSBW1tiOeI2\u0026q=85\u0026s=f7d319f0aaa3145e379a1adf68e157a1"},"favicon":"https://mintcdn.com/hivenet/wLiroph8DC3pwMz6/logo/website-favicon.png?fit=max\u0026auto=format\u0026n=wLiroph8DC3pwMz6\u0026q=85\u0026s=137d9df86fe96dec70d8619d227df3ed","api":{"playground":{"proxy":true},"examples":{"languages":["curl","javascript","Python"],"autogenerate":true},"url":"full"},"appearance":{"strict":false},"navbar":{"links":[{"href":"https://www.hivenet.com/support","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://console.hivecompute.ai/"}},"footer":{"socials":{"x":"https://x.com/hivenet_cloud","linkedin":"https://www.linkedin.com/company/hivenetdistributedcloud"}},"integrations":{"intercom":{"appId":"e7qrp69x"},"mixpanel":{"projectToken":"46ebe1e68e7ebacfc28d1e27e8ba0abf"}},"contextual":{"options":["copy","chatgpt","claude","perplexity","download-pdf","view","assistant"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Console","icon":"computer","href":"https://console.hivecompute.ai/"},{"anchor":"Help Center","icon":"book-open-cover","href":"https://help.hivenet.com/en/"},{"anchor":"Community","icon":"discord","href":"https://discord.com/invite/p2CwYSKsQU"},{"anchor":"Blog","icon":"newspaper","href":"https://compute.hivenet.com/computes-blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hivenet","hasAudioNarration":false,"actualSubdomain":"hivenet","customDomains":["docs.hivenet.com"],"gitSource":{"type":"github","owner":"hivererer","repo":"hivenet-compute-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b05a5d96451cb5adcee209f","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Documentation","count":58},{"language":"default","tag":"Compute API","count":34},{"language":"default","tag":"API reference","count":26},{"language":"default","tag":"Hivenet Object Storage","count":13},{"language":"default","tag":"Connectivity","count":9},{"language":"default","tag":"Inference Service","count":9},{"language":"default","tag":"Essentials","count":8},{"language":"default","tag":"Instances","count":8},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Tutorials","count":7}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@hivenet.com"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/instances/read-an-instances-metrics","slug":"/api-reference/instances/read-an-instances-metrics","pageMetadata":{"title":"Read an instance's metrics","description":"Returns what one of your instances used over a recent time range: CPU,\nmemory, disks, network and GPUs.\n\nEach metric is a series of points, **oldest first**, with one point per\nstep. The step depends on `range`:\n\n| `range` | Window | `step_seconds` | Points |\n|---------|-------------------|----------------|--------|\n| `1h` | The last hour | 60 | 61 |\n| `6h` | The last 6 hours | 180 | 121 |\n| `24h` | The last 24 hours | 300 | 289 |\n| `7d` | The last 7 days | 3600 | 169 |\n\nA series with data has one point per step of the window, plus the\nstep that is still in progress, as `Points` shows. A series with no\ndata has no points.\n\nA point covers the step that ends at its `unix_seconds`, and never\nless than 3 minutes. Thus on the `1h` range, each point covers the 3\nminutes that end at it. Each series says if its values are averages\nor the highest value in the step. When the instance ran for only part\nof a step, an average covers only the part when it ran. On a\nPerformance VM, when the instance stops and starts again in one step,\nthe averages of that step also include the time when it did not run.\nThus they are lower. On a container, the step it started in also\nincludes what it used while it started. The newest point is the step\nthat is still in progress, so its value can change on the next call.\n\nOn a GPU VM, a CPU VM or a container, `cpu_percent`, `in_mbps` and\n`out_mbps` come from counters sampled about every 30 seconds, and\nsamples can be up to 2 minutes apart. Each value is the change between\nsamples divided by the time between those samples, not by the length\nof the step. Thus steady use reads true, but a burst shorter than a\nfew minutes can read higher or lower than its average over the step,\nand can appear one point late. For the same reason, `in_mbps` or\n`out_mbps` multiplied by the step does not give the bytes transferred.\n\nA step with no sample has `value: null`. A gap is never sent as `0`,\nso a `0` is a measured zero.\n\nEvery field of the response is always present. A value that is not\nknown is `null`, never absent. The `status` of each group tells you\nif the group has data at all; see `UsageStatus`.\n\nAn instance that does not exist and an instance that is not yours both\nreturn `404`.\n","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /instances/{id}/metrics","href":"/api-reference/instances/read-an-instances-metrics","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n table: \"table\",\n tbody: \"tbody\",\n td: \"td\",\n th: \"th\",\n thead: \"thead\",\n tr: \"tr\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Returns what one of your instances used over a recent time range: CPU,\\nmemory, disks, network and GPUs.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Each metric is a series of points, \", _jsx(_components.strong, {\n children: \"oldest first\"\n }), \", with one point per\\nstep. The step depends on \", _jsx(_components.code, {\n children: \"range\"\n }), \":\"]\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: _jsx(_components.code, {\n children: \"range\"\n })\n }), _jsx(_components.th, {\n children: \"Window\"\n }), _jsx(_components.th, {\n children: _jsx(_components.code, {\n children: \"step_seconds\"\n })\n }), _jsx(_components.th, {\n children: \"Points\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"1h\"\n })\n }), _jsx(_components.td, {\n children: \"The last hour\"\n }), _jsx(_components.td, {\n children: \"60\"\n }), _jsx(_components.td, {\n children: \"61\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"6h\"\n })\n }), _jsx(_components.td, {\n children: \"The last 6 hours\"\n }), _jsx(_components.td, {\n children: \"180\"\n }), _jsx(_components.td, {\n children: \"121\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"24h\"\n })\n }), _jsx(_components.td, {\n children: \"The last 24 hours\"\n }), _jsx(_components.td, {\n children: \"300\"\n }), _jsx(_components.td, {\n children: \"289\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"7d\"\n })\n }), _jsx(_components.td, {\n children: \"The last 7 days\"\n }), _jsx(_components.td, {\n children: \"3600\"\n }), _jsx(_components.td, {\n children: \"169\"\n })]\n })]\n })]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A series with data has one point per step of the window, plus the\\nstep that is still in progress, as \", _jsx(_components.code, {\n children: \"Points\"\n }), \" shows. A series with no\\ndata has no points.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A point covers the step that ends at its \", _jsx(_components.code, {\n children: \"unix_seconds\"\n }), \", and never\\nless than 3 minutes. Thus on the \", _jsx(_components.code, {\n children: \"1h\"\n }), \" range, each point covers the 3\\nminutes that end at it. Each series says if its values are averages\\nor the highest value in the step. When the instance ran for only part\\nof a step, an average covers only the part when it ran. On a\\nPerformance VM, when the instance stops and starts again in one step,\\nthe averages of that step also include the time when it did not run.\\nThus they are lower. On a container, the step it started in also\\nincludes what it used while it started. The newest point is the step\\nthat is still in progress, so its value can change on the next call.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"On a GPU VM, a CPU VM or a container, \", _jsx(_components.code, {\n children: \"cpu_percent\"\n }), \", \", _jsx(_components.code, {\n children: \"in_mbps\"\n }), \" and\\n\", _jsx(_components.code, {\n children: \"out_mbps\"\n }), \" come from counters sampled about every 30 seconds, and\\nsamples can be up to 2 minutes apart. Each value is the change between\\nsamples divided by the time between those samples, not by the length\\nof the step. Thus steady use reads true, but a burst shorter than a\\nfew minutes can read higher or lower than its average over the step,\\nand can appear one point late. For the same reason, \", _jsx(_components.code, {\n children: \"in_mbps\"\n }), \" or\\n\", _jsx(_components.code, {\n children: \"out_mbps\"\n }), \" multiplied by the step does not give the bytes transferred.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A step with no sample has \", _jsx(_components.code, {\n children: \"value: null\"\n }), \". A gap is never sent as \", _jsx(_components.code, {\n children: \"0\"\n }), \",\\nso a \", _jsx(_components.code, {\n children: \"0\"\n }), \" is a measured zero.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Every field of the response is always present. A value that is not\\nknown is \", _jsx(_components.code, {\n children: \"null\"\n }), \", never absent. The \", _jsx(_components.code, {\n children: \"status\"\n }), \" of each group tells you\\nif the group has data at all; see \", _jsx(_components.code, {\n children: \"UsageStatus\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"An instance that does not exist and an instance that is not yours both\\nreturn \", _jsx(_components.code, {\n children: \"404\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Read an instance's metrics","description":"Returns what one of your instances used over a recent time range: CPU,\nmemory, disks, network and GPUs.\n\nEach metric is a series of points, **oldest first**, with one point per\nstep. The step depends on `range`:\n\n| `range` | Window | `step_seconds` | Points |\n|---------|-------------------|----------------|--------|\n| `1h` | The last hour | 60 | 61 |\n| `6h` | The last 6 hours | 180 | 121 |\n| `24h` | The last 24 hours | 300 | 289 |\n| `7d` | The last 7 days | 3600 | 169 |\n\nA series with data has one point per step of the window, plus the\nstep that is still in progress, as `Points` shows. A series with no\ndata has no points.\n\nA point covers the step that ends at its `unix_seconds`, and never\nless than 3 minutes. Thus on the `1h` range, each point covers the 3\nminutes that end at it. Each series says if its values are averages\nor the highest value in the step. When the instance ran for only part\nof a step, an average covers only the part when it ran. On a\nPerformance VM, when the instance stops and starts again in one step,\nthe averages of that step also include the time when it did not run.\nThus they are lower. On a container, the step it started in also\nincludes what it used while it started. The newest point is the step\nthat is still in progress, so its value can change on the next call.\n\nOn a GPU VM, a CPU VM or a container, `cpu_percent`, `in_mbps` and\n`out_mbps` come from counters sampled about every 30 seconds, and\nsamples can be up to 2 minutes apart. Each value is the change between\nsamples divided by the time between those samples, not by the length\nof the step. Thus steady use reads true, but a burst shorter than a\nfew minutes can read higher or lower than its average over the step,\nand can appear one point late. For the same reason, `in_mbps` or\n`out_mbps` multiplied by the step does not give the bytes transferred.\n\nA step with no sample has `value: null`. A gap is never sent as `0`,\nso a `0` is a measured zero.\n\nEvery field of the response is always present. A value that is not\nknown is `null`, never absent. The `status` of each group tells you\nif the group has data at all; see `UsageStatus`.\n\nAn instance that does not exist and an instance that is not yours both\nreturn `404`.\n","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /instances/{id}/metrics","href":"/api-reference/instances/read-an-instances-metrics","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getInstanceMetrics","tags":["Instances"],"summary":"Read an instance's metrics","description":"Returns what one of your instances used over a recent time range: CPU,\nmemory, disks, network and GPUs.\n\nEach metric is a series of points, **oldest first**, with one point per\nstep. The step depends on `range`:\n\n| `range` | Window | `step_seconds` | Points |\n|---------|-------------------|----------------|--------|\n| `1h` | The last hour | 60 | 61 |\n| `6h` | The last 6 hours | 180 | 121 |\n| `24h` | The last 24 hours | 300 | 289 |\n| `7d` | The last 7 days | 3600 | 169 |\n\nA series with data has one point per step of the window, plus the\nstep that is still in progress, as `Points` shows. A series with no\ndata has no points.\n\nA point covers the step that ends at its `unix_seconds`, and never\nless than 3 minutes. Thus on the `1h` range, each point covers the 3\nminutes that end at it. Each series says if its values are averages\nor the highest value in the step. When the instance ran for only part\nof a step, an average covers only the part when it ran. On a\nPerformance VM, when the instance stops and starts again in one step,\nthe averages of that step also include the time when it did not run.\nThus they are lower. On a container, the step it started in also\nincludes what it used while it started. The newest point is the step\nthat is still in progress, so its value can change on the next call.\n\nOn a GPU VM, a CPU VM or a container, `cpu_percent`, `in_mbps` and\n`out_mbps` come from counters sampled about every 30 seconds, and\nsamples can be up to 2 minutes apart. Each value is the change between\nsamples divided by the time between those samples, not by the length\nof the step. Thus steady use reads true, but a burst shorter than a\nfew minutes can read higher or lower than its average over the step,\nand can appear one point late. For the same reason, `in_mbps` or\n`out_mbps` multiplied by the step does not give the bytes transferred.\n\nA step with no sample has `value: null`. A gap is never sent as `0`,\nso a `0` is a measured zero.\n\nEvery field of the response is always present. A value that is not\nknown is `null`, never absent. The `status` of each group tells you\nif the group has data at all; see `UsageStatus`.\n\nAn instance that does not exist and an instance that is not yours both\nreturn `404`.\n","parameters":["eff1511e-9b90-4ead-8bd0-12dcfda8419d","7fe2470e-13d3-4eef-8022-e60f9ac79d0d"],"responses":{"200":"45dcfce3-8825-4de4-92f3-3f94dee25467","400":"e14e719b-d5ff-49f1-a2dd-87fa2e8beeac","401":"dba8e83a-6d59-4d30-9c58-130379289abe","403":"0e26b475-02b3-4919-b9b1-bc2bc58396f6","404":"cd7607d3-543b-4f2f-b35d-856a4cbb792b","429":"f5275081-1a82-417b-8f44-51de04e2b1ff","500":"b6c4f87c-966b-466e-8d7d-666c19f79890","503":"f5c5ae1b-94fe-4a7a-bddf-ebb9c0a1b74c"},"method":"get","type":"path","servers":["6caf56be-55c7-4e22-a446-a406b56f9a76","c91fc2cb-eacb-4ba8-a73d-6792a349e798"],"security":["35ddbe93-e56c-4863-a1dd-299bb31f55de"],"path":"/instances/{id}/metrics","baseUrlOptions":["https://api.hivecompute.ai/v1","https://staging-api.hivecompute.ai/v1"],"title":"Read an instance's metrics","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","urlDisplay":"full"},"dependencies":{"parameters":{"eff1511e-9b90-4ead-8bd0-12dcfda8419d":{"name":"id","in":"path","required":true,"description":"The instance's unique identifier.","schema":{"type":"string","format":"uuid","isRequired":true,"description":"The instance's unique identifier.","uniqueKey":"","typeLabel":"string\u003cuuid>"}},"7fe2470e-13d3-4eef-8022-e60f9ac79d0d":{"name":"range","in":"query","required":true,"description":"The time range to return, which also sets the step. The value is\nnot case-sensitive: `24H` and `24h` are the same.\n","schema":{"type":"string","enum":["1h","6h","24h","7d"],"isRequired":true,"description":"The time range to return, which also sets the step. The value is\nnot case-sensitive: `24H` and `24h` are the same.\n","uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"responses":{"45dcfce3-8825-4de4-92f3-3f94dee25467":{"description":"The metrics of the instance over the range. The example shows only\nthe two newest points of each series. A response has all the\npoints.\n","content":{"application/json":{"schema":{"type":"object","description":"What one instance used over the requested range. A group that the\ninstance does not have is present with status `NOT_APPLICABLE`.\n","required":["step_seconds","last_sample_at","cpu_status","cpu_percent","memory","disks","network","gpu_status","gpus"],"properties":{"step_seconds":{"type":"integer","format":"int64","description":"Seconds between two points of a series: 60, 180, 300 or 3600 for\nthe `1h`, `6h`, `24h` and `7d` ranges.\n","example":60,"isRequired":true,"uniqueKey":"step_seconds","typeLabel":"integer\u003cint64>"},"last_sample_at":{"oneOf":[{"type":"string","format":"date-time","description":"The time of the newest CPU sample of the instance in the range. Use\nit to see if the instance reports at all. `null` when the range has\nno CPU sample.\n","isRequired":true,"uniqueKey":"last_sample_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The time of the newest CPU sample of the instance in the range. Use\nit to see if the instance reports at all. `null` when the range has\nno CPU sample.\n","isRequired":true,"uniqueKey":"last_sample_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"last_sample_at","typeLabel":"string\u003cdate-time> | null"},"cpu_status":{"type":"string","description":"Whether `cpu_percent` has data.","enum":["OK","NOT_MONITORED","STALE","AGENT_NOT_INSTALLED","AGENT_NOT_RESPONDING","NOT_APPLICABLE","UNSPECIFIED"],"isRequired":true,"uniqueKey":"cpu_status","typeLabel":"enum\u003cstring>"},"cpu_percent":{"type":"object","description":"CPU time used, as a percentage of the instance's vCPUs, from 0 to\n100. The average over each step.\n","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"cpu_percent.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"cpu_percent.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"cpu_percent.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"cpu_percent.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"cpu_percent.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"cpu_percent.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"cpu_percent","typeLabel":"object"},"memory":{"type":"object","description":"The RAM the instance used, against its limits.","required":["status","used_bytes","limit_bytes","hard_limit_bytes"],"properties":{"status":{"type":"string","enum":["OK","NOT_MONITORED","STALE","AGENT_NOT_INSTALLED","AGENT_NOT_RESPONDING","NOT_APPLICABLE","UNSPECIFIED"],"description":"Whether a group of metrics has data.\n\n- `OK` — the group has at least one sample in the range.\n- `NOT_MONITORED` — nothing reports this group for the instance in the\n range.\n- `STALE` — the group has samples in the range, but none recently,\n and the instance is not stopped. Its source stopped reporting; the\n series shows since when.\n- `AGENT_NOT_INSTALLED` — GPUs of a VM only. The guest has no GPU\n agent to read from.\n- `AGENT_NOT_RESPONDING` — GPUs of a VM only. The GPU agent in the\n guest exists but does not answer.\n- `NOT_APPLICABLE` — the instance does not have this group, such as\n GPUs on a CPU-only instance, or any group on an inference instance.\n- `UNSPECIFIED` — no answer. It is not sent today.\n\nMore values can come in a later release. Read `UNSPECIFIED`, and any\nvalue not in this list, as \"unknown\".\n","isRequired":true,"uniqueKey":"memory.status","typeLabel":"enum\u003cstring>"},"used_bytes":{"type":"object","description":"RAM used, in bytes. The highest value in each step.","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"memory.used_bytes.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"memory.used_bytes.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"memory.used_bytes.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"memory.used_bytes.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"memory.used_bytes.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"memory.used_bytes.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"memory.used_bytes","typeLabel":"object"},"limit_bytes":{"oneOf":[{"type":"number","description":"The RAM the instance was sold with, in bytes. For a Performance\nVM, the RAM the VM actually has. `null` when not known.\n","example":34359738368,"isRequired":true,"uniqueKey":"memory.limit_bytes.oneOf.0","typeLabel":"number"},{"type":"null","description":"The RAM the instance was sold with, in bytes. For a Performance\nVM, the RAM the VM actually has. `null` when not known.\n","example":34359738368,"isRequired":true,"uniqueKey":"memory.limit_bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"memory.limit_bytes","typeLabel":"number | null"},"hard_limit_bytes":{"oneOf":[{"type":"number","description":"Containers only. The memory limit that the kernel applies to the\ncontainer, in bytes. It is above `limit_bytes`, to leave headroom.\n`null` for VMs and for a container that has no such limit.\n","example":36507222016,"isRequired":true,"uniqueKey":"memory.hard_limit_bytes.oneOf.0","typeLabel":"number"},{"type":"null","description":"Containers only. The memory limit that the kernel applies to the\ncontainer, in bytes. It is above `limit_bytes`, to leave headroom.\n`null` for VMs and for a container that has no such limit.\n","example":36507222016,"isRequired":true,"uniqueKey":"memory.hard_limit_bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"memory.hard_limit_bytes","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"memory","typeLabel":"object"},"disks":{"type":"array","description":"The disks the instance has, each with its own status. On a VM, the\n`ROOT_DISK` comes first. An instance with no known disk has an\nempty list.\n","items":{"type":"object","description":"The space used on one disk.","required":["kind","label","status","used_bytes","total_bytes"],"properties":{"kind":{"type":"string","enum":["ROOT_DISK","VOLUME","CONTAINER_DISK","DATA_DISK","GUEST_FILESYSTEM","UNSPECIFIED"],"description":"Which disk a `DiskUsage` describes.\n\n- `ROOT_DISK` — the main disk of a VM: labelled `/` on a GPU or CPU\n VM, and `vda` on a Performance VM.\n\n On a GPU or CPU VM, `total_bytes` is the disk size the VM was sold\n with. The filesystem on the disk is smaller, usually by a few\n percent, so a full disk reads below `total_bytes`.\n\n When the QEMU guest agent of the VM reported the filesystem that\n holds `/` in the range, `used_bytes` is that filesystem as the guest\n sees it, like `df`. These values lag and freeze as for\n `GUEST_FILESYSTEM`.\n\n If not, `used_bytes` is the host's view: the space that the disk\n image of the VM takes on its volume. It stays high after the guest\n deletes files, until the guest trims the free blocks.\n\n One source serves the whole response, so two ranges of one VM can\n use different sources. When the agent stops while the VM runs, the\n disk reads `STALE` on the ranges that still hold samples from the\n agent.\n\n A Windows guest has no `/`, so its `ROOT_DISK` is usually the\n host's view. On a GPU VM, its system drive also shows as a\n `GUEST_FILESYSTEM` such as `C:\\`. On a Performance VM, this is the\n `vda` disk, with `total_bytes` only.\n- `VOLUME` — the persistent workspace volume of a container, labelled\n `/home/ubuntu`.\n- `CONTAINER_DISK` — the root filesystem of a container outside the\n workspace volume, labelled `/`. `used_bytes` is mostly the writable\n layer of the container and its logs. **When `used_bytes` goes above\n `total_bytes`, the container is evicted and all data on this disk is\n lost.**\n- `DATA_DISK` — an extra disk of a Performance VM, such as `vdb`.\n Like the `ROOT_DISK` of a Performance VM, it has `total_bytes` only:\n `used_bytes` has no points and `status` is `NOT_MONITORED`.\n- `GUEST_FILESYSTEM` — a filesystem mounted in the guest of a GPU VM,\n as its QEMU guest agent reports it, other than the one that holds\n `/`. These come after the `ROOT_DISK`. CPU VMs and Performance VMs\n never have them.\n\n `label` is the mount point, such as `/data`, or a Windows drive such\n as `C:\\`. `total_bytes` is the newest capacity from the agent: the\n bytes used plus the bytes available to non-root users. Values can\n lag the guest by up to about 5.5 minutes. If the agent stops\n answering while the VM runs, they keep their last value.\n\n A filesystem mounted at several points shows one time. `/boot` and\n all below it, `/efi`, snaps, loop devices, CD-ROMs and the Windows\n System Reserved volume do not show. At most 8 show: the ones\n reported most recently. A filesystem unmounted while the VM runs\n reads `STALE` from then on.\n- `UNSPECIFIED` — an unknown kind. It is not sent today.\n\nMore values can come in a later release. Read `UNSPECIFIED`, and any\nvalue not in this list, as \"unknown\".\n","isRequired":true,"uniqueKey":"disks.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"label":{"type":"string","description":"The name of the disk for display: `/`, `/home/ubuntu`, `vda`,\n`vdb`, or a mount point in the guest such as `/data` or `C:\\`.\n","example":"/home/ubuntu","isRequired":true,"uniqueKey":"disks.items.[INDEX].label","typeLabel":"string"},"status":{"type":"string","enum":["OK","NOT_MONITORED","STALE","AGENT_NOT_INSTALLED","AGENT_NOT_RESPONDING","NOT_APPLICABLE","UNSPECIFIED"],"description":"Whether a group of metrics has data.\n\n- `OK` — the group has at least one sample in the range.\n- `NOT_MONITORED` — nothing reports this group for the instance in the\n range.\n- `STALE` — the group has samples in the range, but none recently,\n and the instance is not stopped. Its source stopped reporting; the\n series shows since when.\n- `AGENT_NOT_INSTALLED` — GPUs of a VM only. The guest has no GPU\n agent to read from.\n- `AGENT_NOT_RESPONDING` — GPUs of a VM only. The GPU agent in the\n guest exists but does not answer.\n- `NOT_APPLICABLE` — the instance does not have this group, such as\n GPUs on a CPU-only instance, or any group on an inference instance.\n- `UNSPECIFIED` — no answer. It is not sent today.\n\nMore values can come in a later release. Read `UNSPECIFIED`, and any\nvalue not in this list, as \"unknown\".\n","isRequired":true,"uniqueKey":"disks.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"used_bytes":{"type":"object","description":"Space used, in bytes. The highest value in each step. It can have\nno points, with status `NOT_MONITORED`, while `total_bytes` is\nknown.\n","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"disks.items.[INDEX].used_bytes.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"disks.items.[INDEX].used_bytes.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"disks.items.[INDEX].used_bytes.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"disks.items.[INDEX].used_bytes.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"disks.items.[INDEX].used_bytes.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"disks.items.[INDEX].used_bytes.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"disks.items.[INDEX].used_bytes","typeLabel":"object"},"total_bytes":{"oneOf":[{"type":"number","description":"The size of the disk, in bytes. `kind` tells what it measures.\n`null` when not known.\n","example":107374182400,"isRequired":true,"uniqueKey":"disks.items.[INDEX].total_bytes.oneOf.0","typeLabel":"number"},{"type":"null","description":"The size of the disk, in bytes. `kind` tells what it measures.\n`null` when not known.\n","example":107374182400,"isRequired":true,"uniqueKey":"disks.items.[INDEX].total_bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"disks.items.[INDEX].total_bytes","typeLabel":"number | null"}},"uniqueKey":"disks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"disks","typeLabel":"object[]"},"network":{"type":"object","description":"Traffic into and out of the instance, in megabits per second (Mbps).\n1 Mbps is 1,000,000 bits per second.\n","required":["status","in_mbps","out_mbps","in_peak_mbps","out_peak_mbps","cap_mbps"],"properties":{"status":{"type":"string","enum":["OK","NOT_MONITORED","STALE","AGENT_NOT_INSTALLED","AGENT_NOT_RESPONDING","NOT_APPLICABLE","UNSPECIFIED"],"description":"Whether a group of metrics has data.\n\n- `OK` — the group has at least one sample in the range.\n- `NOT_MONITORED` — nothing reports this group for the instance in the\n range.\n- `STALE` — the group has samples in the range, but none recently,\n and the instance is not stopped. Its source stopped reporting; the\n series shows since when.\n- `AGENT_NOT_INSTALLED` — GPUs of a VM only. The guest has no GPU\n agent to read from.\n- `AGENT_NOT_RESPONDING` — GPUs of a VM only. The GPU agent in the\n guest exists but does not answer.\n- `NOT_APPLICABLE` — the instance does not have this group, such as\n GPUs on a CPU-only instance, or any group on an inference instance.\n- `UNSPECIFIED` — no answer. It is not sent today.\n\nMore values can come in a later release. Read `UNSPECIFIED`, and any\nvalue not in this list, as \"unknown\".\n","isRequired":true,"uniqueKey":"network.status","typeLabel":"enum\u003cstring>"},"in_mbps":{"type":"object","description":"Traffic into the instance. The average over each step.","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"network.in_mbps.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"network.in_mbps.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"network.in_mbps.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"network.in_mbps.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"network.in_mbps.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"network.in_mbps.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"network.in_mbps","typeLabel":"object"},"out_mbps":{"type":"object","description":"Traffic out of the instance. The average over each step.","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"network.out_mbps.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"network.out_mbps.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"network.out_mbps.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"network.out_mbps.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"network.out_mbps.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"network.out_mbps.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"network.out_mbps","typeLabel":"object"},"in_peak_mbps":{"type":"object","description":"`7d` range only: the highest 3-minute average of traffic into the\ninstance in each step. It shows the bursts that the hourly average\nhides. It has no points on the other ranges.\n","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"network.in_peak_mbps.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"network.in_peak_mbps.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"network.in_peak_mbps.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"network.in_peak_mbps.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"network.in_peak_mbps.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"network.in_peak_mbps.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"network.in_peak_mbps","typeLabel":"object"},"out_peak_mbps":{"type":"object","description":"`7d` range only: the highest 3-minute average of traffic out of\nthe instance in each step. It has no points on the other ranges.\n","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"network.out_peak_mbps.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"network.out_peak_mbps.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"network.out_peak_mbps.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"network.out_peak_mbps.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"network.out_peak_mbps.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"network.out_peak_mbps.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"network.out_peak_mbps","typeLabel":"object"},"cap_mbps":{"oneOf":[{"type":"number","description":"The bandwidth the instance was sold with, in Mbps. It is always\n`null` on a Performance VM. It is also `null` when we have no\nbandwidth on record for the instance.\n","example":1000,"isRequired":true,"uniqueKey":"network.cap_mbps.oneOf.0","typeLabel":"number"},{"type":"null","description":"The bandwidth the instance was sold with, in Mbps. It is always\n`null` on a Performance VM. It is also `null` when we have no\nbandwidth on record for the instance.\n","example":1000,"isRequired":true,"uniqueKey":"network.cap_mbps.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"network.cap_mbps","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"network","typeLabel":"object"},"gpu_status":{"type":"string","description":"Whether `gpus` has data, for all the GPUs of the instance together.\n`NOT_APPLICABLE` on an instance with no GPU.\n","enum":["OK","NOT_MONITORED","STALE","AGENT_NOT_INSTALLED","AGENT_NOT_RESPONDING","NOT_APPLICABLE","UNSPECIFIED"],"isRequired":true,"uniqueKey":"gpu_status","typeLabel":"enum\u003cstring>"},"gpus":{"type":"array","description":"The GPUs that reported in the range. Empty when the instance has no\nGPU, or when no GPU of the instance reported. `gpu_status` tells\nwhich of the two applies. On a GPU VM, when one GPU reported, the\nlist has all the GPUs of the instance. A container lists only the\nGPUs that reported. A Performance VM does not report GPU metrics,\nthus its list is always empty.\n","items":{"type":"object","description":"One GPU of the instance. In the step where a container restarts onto\nother GPUs, the values of the GPUs from before and after the restart\ncan both count for that step.\n","required":["index","model","utilization_percent","memory_used_bytes","memory_total_bytes","temperature_celsius","power_watts"],"properties":{"index":{"type":"integer","description":"The position of the GPU in the instance, from 0. It is not the GPU\nnumber on the host, which can change when a container restarts.\n","example":0,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].index","typeLabel":"integer"},"model":{"type":"string","description":"The GPU model.","example":"RTX 4090","isRequired":true,"uniqueKey":"gpus.items.[INDEX].model","typeLabel":"string"},"utilization_percent":{"type":"object","description":"GPU use, from 0 to 100 percent. The average over each step.","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].utilization_percent.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].utilization_percent.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].utilization_percent.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"gpus.items.[INDEX].utilization_percent.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"gpus.items.[INDEX].utilization_percent.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"gpus.items.[INDEX].utilization_percent.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"gpus.items.[INDEX].utilization_percent","typeLabel":"object"},"memory_used_bytes":{"type":"object","description":"GPU memory used, in bytes. The highest value in each step.","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].memory_used_bytes.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].memory_used_bytes.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].memory_used_bytes.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"gpus.items.[INDEX].memory_used_bytes.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"gpus.items.[INDEX].memory_used_bytes.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"gpus.items.[INDEX].memory_used_bytes.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"gpus.items.[INDEX].memory_used_bytes","typeLabel":"object"},"memory_total_bytes":{"oneOf":[{"type":"number","description":"The memory of the GPU, in bytes. `null` when not known.","example":25757220864,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].memory_total_bytes.oneOf.0","typeLabel":"number"},{"type":"null","description":"The memory of the GPU, in bytes. `null` when not known.","example":25757220864,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].memory_total_bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"gpus.items.[INDEX].memory_total_bytes","typeLabel":"number | null"},"temperature_celsius":{"type":"object","description":"GPU temperature, in degrees Celsius. The highest value in each step.","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].temperature_celsius.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].temperature_celsius.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].temperature_celsius.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"gpus.items.[INDEX].temperature_celsius.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"gpus.items.[INDEX].temperature_celsius.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"gpus.items.[INDEX].temperature_celsius.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"gpus.items.[INDEX].temperature_celsius","typeLabel":"object"},"power_watts":{"type":"object","description":"GPU power draw, in watts. The average over each step.","required":["points"],"properties":{"points":{"type":"array","items":{"type":"object","required":["unix_seconds","value"],"properties":{"unix_seconds":{"type":"integer","format":"int64","description":"The end of the step, as Unix time in seconds.","example":1792490400,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].power_watts.points.items.[INDEX].unix_seconds","typeLabel":"integer\u003cint64>"},"value":{"oneOf":[{"type":"number","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].power_watts.points.items.[INDEX].value.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The value for the step, in the unit of its series. `null` when the\nstep has no sample. Never NaN or infinite.\n","example":37.5,"isRequired":true,"uniqueKey":"gpus.items.[INDEX].power_watts.points.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"gpus.items.[INDEX].power_watts.points.items.[INDEX].value","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"gpus.items.[INDEX].power_watts.points.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"gpus.items.[INDEX].power_watts.points","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"gpus.items.[INDEX].power_watts","typeLabel":"object"}},"uniqueKey":"gpus.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"gpus","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"step_seconds":60,"last_sample_at":"2026-10-20T09:59:45.000Z","cpu_status":"OK","cpu_percent":{"points":[{"unix_seconds":1792490400,"value":37.5},{"unix_seconds":1792490460,"value":41.2}]},"memory":{"status":"OK","used_bytes":{"points":[{"unix_seconds":1792490400,"value":6442450944},{"unix_seconds":1792490460,"value":6576668672}]},"limit_bytes":34359738368,"hard_limit_bytes":36507222016},"disks":[{"kind":"VOLUME","label":"/home/ubuntu","status":"OK","used_bytes":{"points":[{"unix_seconds":1792490400,"value":21474836480},{"unix_seconds":1792490460,"value":21475885056}]},"total_bytes":107374182400},{"kind":"CONTAINER_DISK","label":"/","status":"OK","used_bytes":{"points":[{"unix_seconds":1792490400,"value":1073741824},{"unix_seconds":1792490460,"value":1074790400}]},"total_bytes":32212254720}],"network":{"status":"OK","in_mbps":{"points":[{"unix_seconds":1792490400,"value":12.4},{"unix_seconds":1792490460,"value":10.8}]},"out_mbps":{"points":[{"unix_seconds":1792490400,"value":3.1},{"unix_seconds":1792490460,"value":2.9}]},"in_peak_mbps":{"points":[]},"out_peak_mbps":{"points":[]},"cap_mbps":1000},"gpu_status":"OK","gpus":[{"index":0,"model":"RTX 4090","utilization_percent":{"points":[{"unix_seconds":1792490400,"value":98},{"unix_seconds":1792490460,"value":97}]},"memory_used_bytes":{"points":[{"unix_seconds":1792490400,"value":20401094656},{"unix_seconds":1792490460,"value":20401094656}]},"memory_total_bytes":25757220864,"temperature_celsius":{"points":[{"unix_seconds":1792490400,"value":71},{"unix_seconds":1792490460,"value":72}]},"power_watts":{"points":[{"unix_seconds":1792490400,"value":402.5},{"unix_seconds":1792490460,"value":398}]}}]},"examples":{"Example":{"title":"Example","value":{"step_seconds":60,"last_sample_at":"2026-10-20T09:59:45.000Z","cpu_status":"OK","cpu_percent":{"points":[{"unix_seconds":1792490400,"value":37.5},{"unix_seconds":1792490460,"value":41.2}]},"memory":{"status":"OK","used_bytes":{"points":[{"unix_seconds":1792490400,"value":6442450944},{"unix_seconds":1792490460,"value":6576668672}]},"limit_bytes":34359738368,"hard_limit_bytes":36507222016},"disks":[{"kind":"VOLUME","label":"/home/ubuntu","status":"OK","used_bytes":{"points":[{"unix_seconds":1792490400,"value":21474836480},{"unix_seconds":1792490460,"value":21475885056}]},"total_bytes":107374182400},{"kind":"CONTAINER_DISK","label":"/","status":"OK","used_bytes":{"points":[{"unix_seconds":1792490400,"value":1073741824},{"unix_seconds":1792490460,"value":1074790400}]},"total_bytes":32212254720}],"network":{"status":"OK","in_mbps":{"points":[{"unix_seconds":1792490400,"value":12.4},{"unix_seconds":1792490460,"value":10.8}]},"out_mbps":{"points":[{"unix_seconds":1792490400,"value":3.1},{"unix_seconds":1792490460,"value":2.9}]},"in_peak_mbps":{"points":[]},"out_peak_mbps":{"points":[]},"cap_mbps":1000},"gpu_status":"OK","gpus":[{"index":0,"model":"RTX 4090","utilization_percent":{"points":[{"unix_seconds":1792490400,"value":98},{"unix_seconds":1792490460,"value":97}]},"memory_used_bytes":{"points":[{"unix_seconds":1792490400,"value":20401094656},{"unix_seconds":1792490460,"value":20401094656}]},"memory_total_bytes":25757220864,"temperature_celsius":{"points":[{"unix_seconds":1792490400,"value":71},{"unix_seconds":1792490460,"value":72}]},"power_watts":{"points":[{"unix_seconds":1792490400,"value":402.5},{"unix_seconds":1792490460,"value":398}]}}]}}},"exampleType":"examples"}},"exampleType":"examples"},"e14e719b-d5ff-49f1-a2dd-87fa2e8beeac":{"description":"The request was malformed or a parameter was invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","VALIDATION_ERROR","CONFLICT","TOO_MANY_REQUESTS","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"description":"Stable, machine-readable error code.","uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation. Do not match on this text.","uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request in our logs. Quote it to support.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"VALIDATION_ERROR","message":"[{\"property\":\"size\",\"constraints\":[\"size must not be greater than 200\"]}]","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"[{\"property\":\"size\",\"constraints\":[\"size must not be greater than 200\"]}]","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}}}},"exampleType":"examples"}},"exampleType":"examples"},"dba8e83a-6d59-4d30-9c58-130379289abe":{"description":"The API key is missing, malformed or not valid.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","VALIDATION_ERROR","CONFLICT","TOO_MANY_REQUESTS","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"description":"Stable, machine-readable error code.","uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation. Do not match on this text.","uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request in our logs. Quote it to support.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"UNAUTHORIZED","message":"Missing API token","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"Missing API token","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}}}},"exampleType":"examples"}},"exampleType":"examples"},"0e26b475-02b3-4919-b9b1-bc2bc58396f6":{"description":"Your account cannot use the API now, for example because it is\nsuspended. For an instance that is not yours, this endpoint does not\nanswer `403`. It answers `404`, as for an instance that does not\nexist.\n","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","VALIDATION_ERROR","CONFLICT","TOO_MANY_REQUESTS","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"description":"Stable, machine-readable error code.","uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation. Do not match on this text.","uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request in our logs. Quote it to support.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"FORBIDDEN","message":"You do not have access to this resource.","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"FORBIDDEN","message":"You do not have access to this resource.","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}}}},"exampleType":"examples"}},"exampleType":"examples"},"cd7607d3-543b-4f2f-b35d-856a4cbb792b":{"description":"No such resource.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","VALIDATION_ERROR","CONFLICT","TOO_MANY_REQUESTS","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"description":"Stable, machine-readable error code.","uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation. Do not match on this text.","uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request in our logs. Quote it to support.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"NOT_FOUND","message":"Not found.","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"Not found.","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}}}},"exampleType":"examples"}},"exampleType":"examples"},"f5275081-1a82-417b-8f44-51de04e2b1ff":{"description":"Too many requests. Wait the number of seconds given in `Retry-After`\nbefore retrying.\n","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","VALIDATION_ERROR","CONFLICT","TOO_MANY_REQUESTS","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"description":"Stable, machine-readable error code.","uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation. Do not match on this text.","uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request in our logs. Quote it to support.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"TOO_MANY_REQUESTS","message":"Too Many Requests","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"TOO_MANY_REQUESTS","message":"Too Many Requests","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b6c4f87c-966b-466e-8d7d-666c19f79890":{"description":"Something went wrong on our side. Retry, then contact support with the\n`request_id`.\n\nThe `message` is deliberately generic and carries no detail about the\ncause. Quote the `request_id`, which identifies the underlying error in\nour logs.\n","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","VALIDATION_ERROR","CONFLICT","TOO_MANY_REQUESTS","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"description":"Stable, machine-readable error code.","uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation. Do not match on this text.","uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request in our logs. Quote it to support.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"INTERNAL_ERROR","message":"An internal error occurred.","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INTERNAL_ERROR","message":"An internal error occurred.","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}}}},"exampleType":"examples"}},"exampleType":"examples"},"f5c5ae1b-94fe-4a7a-bddf-ebb9c0a1b74c":{"description":"We cannot read the metrics now. The causes are: the metrics store or\nour database did not answer in time, or answered with an error, or\nthis environment does not supply metrics. The message is the same for\nall the causes.\n\nRetry with backoff. If you get `503` for every instance and every\nrange, and it does not stop, this environment does not supply\nmetrics. Then stop retrying.\n","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED","FORBIDDEN","NOT_FOUND","VALIDATION_ERROR","CONFLICT","TOO_MANY_REQUESTS","SERVICE_UNAVAILABLE","INTERNAL_ERROR"],"description":"Stable, machine-readable error code.","uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation. Do not match on this text.","uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Identifies this request in our logs. Quote it to support.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"SERVICE_UNAVAILABLE","message":"The service is temporarily unavailable. Try again later.","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"SERVICE_UNAVAILABLE","message":"The service is temporarily unavailable. Try again later.","request_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"35ddbe93-e56c-4863-a1dd-299bb31f55de":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key issued by Hive Compute support. See **Authentication**\nabove for how to request one.\n","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"6caf56be-55c7-4e22-a446-a406b56f9a76":{"url":"https://api.hivecompute.ai/v1","description":"Production"},"c91fc2cb-eacb-4ba8-a73d-6792a349e798":{"url":"https://staging-api.hivecompute.ai/v1","description":"Staging"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key issued by Hive Compute support. See **Authentication**\nabove for how to request one.\n","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key issued by Hive Compute support. See **Authentication**\nabove for how to request one.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"public-v1.yaml"},"subdomain":"hivenet","siteName":"Hivenet Docs","title":"Read an instance's metrics - Hivenet Docs","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T14:51:35.435Z","originalFileLocation":"api-reference/instances/read-an-instances-metrics.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Returns what one of your instances used over a recent time range: CPU, memory, disks, network and GPUs. Each metric is a series of points, oldest first, with one point per step. The step depends on range: | range | Window | step_seconds | Points | |---------|-------------------|----------------|--------| | 1h | The last hour | 60 | 61 | | 6h | The last 6 hours | 180 | 121 | | 24h | The last 24 hours | 300 | 289 | | 7d | The last 7 days | 3600 | 169 | A series with data has one point per step of the window, plus the step that is still in progress, as Points shows. A series with no data has no points. A point covers the step that ends at its unix_seconds, and never less than 3 minutes. Thus on the 1h range, each point covers the 3 minutes that end at it. Each series says if its values are averages or the highest value in the step. When the instance ran for only part of a step, an average covers only the part when it ran. On a Performance VM, when the instance stops and starts again in one step, the averages of that step also include the time when it did not run. Thus they are lower. On a container, the step it started in also includes what it used while it started. The newest point is the step that is still in progress, so its value can change on the next call. On a GPU VM, a CPU VM or a container, cpu_percent, in_mbps and out_mbps come from counters sampled about every 30 seconds, and samples can be up to 2 minutes apart. Each value is the change between samples divided by the time between those samples, not by the length of the step. Thus steady use reads true, but a burst shorter than a few minutes can read higher or lower than its average over the step, and can appear one point late. For the same reason, in_mbps or out_mbps multiplied by the step does not give the bytes transferred. A step with no sample has value: null. A gap is never sent as 0, so a 0 is a measured zero. Every field of the response is always present. A value that is not known is null, never absent. The status of each group tells you if the group has data at all; see UsageStatus. An instance that does not exist and an instance that is not yours both return 404.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hivenet Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Read an instance\u0026#x27;s metrics - Hivenet Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns what one of your instances used over a recent time range: CPU, memory, disks, network and GPUs. Each metric is a series of points, oldest first, with one point per step. The step depends on range: | range | Window | step_seconds | Points | |---------|-------------------|----------------|--------| | 1h | The last hour | 60 | 61 | | 6h | The last 6 hours | 180 | 121 | | 24h | The last 24 hours | 300 | 289 | | 7d | The last 7 days | 3600 | 169 | A series with data has one point per step of the window, plus the step that is still in progress, as Points shows. A series with no data has no points. A point covers the step that ends at its unix_seconds, and never less than 3 minutes. Thus on the 1h range, each point covers the 3 minutes that end at it. Each series says if its values are averages or the highest value in the step. When the instance ran for only part of a step, an average covers only the part when it ran. On a Performance VM, when the instance stops and starts again in one step, the averages of that step also include the time when it did not run. Thus they are lower. On a container, the step it started in also includes what it used while it started. The newest point is the step that is still in progress, so its value can change on the next call. On a GPU VM, a CPU VM or a container, cpu_percent, in_mbps and out_mbps come from counters sampled about every 30 seconds, and samples can be up to 2 minutes apart. Each value is the change between samples divided by the time between those samples, not by the length of the step. Thus steady use reads true, but a burst shorter than a few minutes can read higher or lower than its average over the step, and can appear one point late. For the same reason, in_mbps or out_mbps multiplied by the step does not give the bytes transferred. A step with no sample has value: null. A gap is never sent as 0, so a 0 is a measured zero. Every field of the response is always present. A value that is not known is null, never absent. The status of each group tells you if the group has data at all; see UsageStatus. An instance that does not exist and an instance that is not yours both return 404.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hivenet Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hivenet.mintlify.site/_mintlify/api/og/v2?division=Instances\u0026amp;title=Read+an+instance%27s+metrics\u0026amp;description=Returns+what+one+of+your+instances+used+over+a+recent+time+range%3A+CPU%2C%0Amemory%2C+disks%2C+network+and+GPUs.%0A%0AEach+metric+is+a+series+of+points%2C+**oldest+first**%2C+wi\u0026amp;theme=072b658adc15a34810fb37fc\u0026amp;signature=7df427edbe4dfd5e3916df247aa9a8b79d9cf50d9aa391f9ae8390327f683e35\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Read an instance\u0026#x27;s metrics - Hivenet Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns what one of your instances used over a recent time range: CPU, memory, disks, network and GPUs. Each metric is a series of points, oldest first, with one point per step. The step depends on range: | range | Window | step_seconds | Points | |---------|-------------------|----------------|--------| | 1h | The last hour | 60 | 61 | | 6h | The last 6 hours | 180 | 121 | | 24h | The last 24 hours | 300 | 289 | | 7d | The last 7 days | 3600 | 169 | A series with data has one point per step of the window, plus the step that is still in progress, as Points shows. A series with no data has no points. A point covers the step that ends at its unix_seconds, and never less than 3 minutes. Thus on the 1h range, each point covers the 3 minutes that end at it. Each series says if its values are averages or the highest value in the step. When the instance ran for only part of a step, an average covers only the part when it ran. On a Performance VM, when the instance stops and starts again in one step, the averages of that step also include the time when it did not run. Thus they are lower. On a container, the step it started in also includes what it used while it started. The newest point is the step that is still in progress, so its value can change on the next call. On a GPU VM, a CPU VM or a container, cpu_percent, in_mbps and out_mbps come from counters sampled about every 30 seconds, and samples can be up to 2 minutes apart. Each value is the change between samples divided by the time between those samples, not by the length of the step. Thus steady use reads true, but a burst shorter than a few minutes can read higher or lower than its average over the step, and can appear one point late. For the same reason, in_mbps or out_mbps multiplied by the step does not give the bytes transferred. A step with no sample has value: null. A gap is never sent as 0, so a 0 is a measured zero. Every field of the response is always present. A value that is not known is null, never absent. The status of each group tells you if the group has data at all; see UsageStatus. An instance that does not exist and an instance that is not yours both return 404.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hivenet.mintlify.site/_mintlify/api/og/v2?division=Instances\u0026amp;title=Read+an+instance%27s+metrics\u0026amp;description=Returns+what+one+of+your+instances+used+over+a+recent+time+range%3A+CPU%2C%0Amemory%2C+disks%2C+network+and+GPUs.%0A%0AEach+metric+is+a+series+of+points%2C+**oldest+first**%2C+wi\u0026amp;theme=072b658adc15a34810fb37fc\u0026amp;signature=7df427edbe4dfd5e3916df247aa9a8b79d9cf50d9aa391f9ae8390327f683e35\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/hivenet/dBFcnj6sz1puistJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hivenet Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D46E35\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/instances/read-an-instances-metrics.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hivenet.com/#organization\",\"name\":\"Hivenet Docs\",\"url\":\"https://docs.hivenet.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hivenet/TWEg6sSBW1tiOeI2/logo/hivenet-logo-color-light.svg?fit=max\u0026auto=format\u0026n=TWEg6sSBW1tiOeI2\u0026q=85\u0026s=4fc5fd5b28244278713ed9ad46ba2e31\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hivenet.com#website\",\"name\":\"Hivenet Docs\",\"url\":\"https://docs.hivenet.com\",\"publisher\":{\"@id\":\"https://docs.hivenet.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics#webpage\",\"url\":\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics\",\"name\":\"Read an instance's metrics\",\"description\":\"Returns what one of your instances used over a recent time range: CPU, memory, disks, network and GPUs. Each metric is a series of points, oldest first, with one point per step. The step depends on range: | range | Window | step_seconds | Points | |---------|-------------------|----------------|--------| | 1h | The last hour | 60 | 61 | | 6h | The last 6 hours | 180 | 121 | | 24h | The last 24 hours | 300 | 289 | | 7d | The last 7 days | 3600 | 169 | A series with data has one point per step of the window, plus the step that is still in progress, as Points shows. A series with no data has no points. A point covers the step that ends at its unix_seconds, and never less than 3 minutes. Thus on the 1h range, each point covers the 3 minutes that end at it. Each series says if its values are averages or the highest value in the step. When the instance ran for only part of a step, an average covers only the part when it ran. On a Performance VM, when the instance stops and starts again in one step, the averages of that step also include the time when it did not run. Thus they are lower. On a container, the step it started in also includes what it used while it started. The newest point is the step that is still in progress, so its value can change on the next call. On a GPU VM, a CPU VM or a container, cpu_percent, in_mbps and out_mbps come from counters sampled about every 30 seconds, and samples can be up to 2 minutes apart. Each value is the change between samples divided by the time between those samples, not by the length of the step. Thus steady use reads true, but a burst shorter than a few minutes can read higher or lower than its average over the step, and can appear one point late. For the same reason, in_mbps or out_mbps multiplied by the step does not give the bytes transferred. A step with no sample has value: null. A gap is never sent as 0, so a 0 is a measured zero. Every field of the response is always present. A value that is not known is null, never absent. The status of each group tells you if the group has data at all; see UsageStatus. An instance that does not exist and an instance that is not yours both return 404.\",\"dateModified\":\"2026-11-24T14:51:35.435Z\",\"isPartOf\":{\"@id\":\"https://docs.hivenet.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://docs.hivenet.com/public-api/endpoints/list-instances\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Instances\",\"item\":\"https://docs.hivenet.com/api-reference/instances/list-your-instances\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Read an instance's metrics\",\"item\":\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics#apireference\",\"headline\":\"Read an instance's metrics\",\"name\":\"Read an instance's metrics\",\"description\":\"Returns what one of your instances used over a recent time range: CPU, memory, disks, network and GPUs. Each metric is a series of points, oldest first, with one point per step. The step depends on range: | range | Window | step_seconds | Points | |---------|-------------------|----------------|--------| | 1h | The last hour | 60 | 61 | | 6h | The last 6 hours | 180 | 121 | | 24h | The last 24 hours | 300 | 289 | | 7d | The last 7 days | 3600 | 169 | A series with data has one point per step of the window, plus the step that is still in progress, as Points shows. A series with no data has no points. A point covers the step that ends at its unix_seconds, and never less than 3 minutes. Thus on the 1h range, each point covers the 3 minutes that end at it. Each series says if its values are averages or the highest value in the step. When the instance ran for only part of a step, an average covers only the part when it ran. On a Performance VM, when the instance stops and starts again in one step, the averages of that step also include the time when it did not run. Thus they are lower. On a container, the step it started in also includes what it used while it started. The newest point is the step that is still in progress, so its value can change on the next call. On a GPU VM, a CPU VM or a container, cpu_percent, in_mbps and out_mbps come from counters sampled about every 30 seconds, and samples can be up to 2 minutes apart. Each value is the change between samples divided by the time between those samples, not by the length of the step. Thus steady use reads true, but a burst shorter than a few minutes can read higher or lower than its average over the step, and can appear one point late. For the same reason, in_mbps or out_mbps multiplied by the step does not give the bytes transferred. A step with no sample has value: null. A gap is never sent as 0, so a 0 is a measured zero. Every field of the response is always present. A value that is not known is null, never absent. The status of each group tells you if the group has data at all; see UsageStatus. An instance that does not exist and an instance that is not yours both return 404.\",\"url\":\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hivenet.com/api-reference/instances/read-an-instances-metrics#webpage\"},\"dateModified\":\"2026-11-24T14:51:35.435Z\",\"publisher\":{\"@id\":\"https://docs.hivenet.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hivenet.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hivenet Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Hivenet Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/instances/read-an-instances-metrics.md","siteName":"Hivenet Docs","nav":{"global":{"anchors":[{"anchor":"Console","icon":"computer","href":"https://console.hivecompute.ai/"},{"anchor":"Help Center","icon":"book-open-cover","href":"https://help.hivenet.com/en/"},{"anchor":"Community","icon":"discord","href":"https://discord.com/invite/p2CwYSKsQU"},{"anchor":"Blog","icon":"newspaper","href":"https://compute.hivenet.com/computes-blog"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials/how-to/configuration-image-generation"}]},{"tab":"Compute API","pages":[{"group":"Guides","pages":[{"title":"Get started with the Compute API","sidebarTitle":"Get started","href":"/public-api/get-started-with-the-compute-api"},{"title":"Make your first API request","sidebarTitle":"First API request","href":"/public-api/make-your-first-api-request"},{"title":"Authenticate API requests","sidebarTitle":"Authentication","href":"/public-api/authenticate-api-requests"},{"title":"Create an instance using the Compute API","sidebarTitle":"Create an instance","href":"/public-api/create-an-instance-using-the-compute-api"},{"title":"Work with instances","sidebarTitle":"Instances","href":"/public-api/work-with-instances"},{"title":"Use pagination and filters","sidebarTitle":"Pagination and filters","href":"/public-api/use-pagination-and-filters"},{"title":"Handle errors and rate limits","sidebarTitle":"Errors and rate limits","href":"/public-api/handle-errors-and-rate-limits"}]},{"group":"API reference","expanded":true,"pages":[{"title":"List instances","sidebarTitle":"List instances","openapi":"public-v1.yaml GET /instances","href":"/public-api/endpoints/list-instances"},{"title":"Get instance","sidebarTitle":"Get instance","openapi":"public-v1.yaml GET /instances/{id}","href":"/public-api/endpoints/get-instance"},{"title":"Get instance logs","openapi":"public-v1.yaml GET /instances/{id}/logs","href":"/public-api/endpoints/get-instance-logs"},{"title":"Get instance metrics","sidebarTitle":"Get instance metrics","openapi":"public-v1.yaml GET /instances/{id}/metrics","playground":"none","href":"/public-api/endpoints/get-instance-metrics"},{"title":"Start instance","openapi":"public-v1.yaml POST /instances/{id}/start","href":"/public-api/endpoints/start-instance"},{"title":"Stop instance","sidebarTitle":"Stop instance","openapi":"public-v1.yaml POST /instances/{id}/stop","href":"/public-api/endpoints/stop-instance"},{"title":"Terminate instance","openapi":"public-v1.yaml POST /instances/{id}/terminate","href":"/public-api/endpoints/terminate-instance"},{"title":"List regions","sidebarTitle":"List regions","openapi":"public-v1.yaml GET /regions","href":"/public-api/endpoints/list-regions"},{"title":"List presets","sidebarTitle":"List presets","openapi":"public-v1.yaml GET /presets","href":"/public-api/endpoints/list-presets"},{"title":"Create instance","sidebarTitle":"Create instance","openapi":"public-v1.yaml POST /instances","playground":"none","href":"/public-api/endpoints/create-instance"},{"title":"List images","sidebarTitle":"List images","openapi":"public-v1.yaml GET /images","playground":"none","href":"/public-api/endpoints/list-images"},{"title":"Register SSH key","sidebarTitle":"Register SSH key","openapi":"public-v1.yaml POST /ssh-keys","playground":"none","href":"/public-api/endpoints/register-ssh-key"},{"title":"Get SSH key","sidebarTitle":"Get SSH key","openapi":"public-v1.yaml GET /ssh-keys/{id}","playground":"none","href":"/public-api/endpoints/get-ssh-key"},{"group":"Instances","pages":[{"title":"List your instances","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /instances","href":"/api-reference/instances/list-your-instances"},{"title":"Create an instance","deprecated":null,"version":null,"openapi":"/public-v1.yaml post /instances","href":"/api-reference/instances/create-an-instance"},{"title":"Get an instance","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /instances/{id}","href":"/api-reference/instances/get-an-instance"},{"title":"Read an instance's logs","description":"Returns recent console output from one of your instances, **newest\nline first** (the same order as `kubectl logs --tail`). The window\nreaches back at most 10 hours; older output is not retrievable through\nthis endpoint.\n","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /instances/{id}/logs","href":"/api-reference/instances/read-an-instances-logs"},{"title":"Read an instance's metrics","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /instances/{id}/metrics","href":"/api-reference/instances/read-an-instances-metrics"},{"title":"Start an instance","description":"Starts a stopped instance. The call returns as soon as the request is\naccepted; the instance moves `STARTING → RUNNING` in the background, so\npoll `GET /instances/{id}` to observe the transition.\n\nStarting an already-running instance is accepted and changes nothing.\n\nReturns `409` when the instance is `TERMINATING` or `TERMINATED`. A\nterminated instance can never be started again.\n","deprecated":null,"version":null,"openapi":"/public-v1.yaml post /instances/{id}/start","href":"/api-reference/instances/start-an-instance"},{"title":"Stop an instance","deprecated":null,"version":null,"openapi":"/public-v1.yaml post /instances/{id}/stop","href":"/api-reference/instances/stop-an-instance"},{"title":"Terminate an instance","deprecated":null,"version":null,"openapi":"/public-v1.yaml post /instances/{id}/terminate","href":"/api-reference/instances/terminate-an-instance"}]},{"group":"Catalogue","pages":[{"title":"List regions","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /regions","href":"/api-reference/catalogue/list-regions"},{"title":"List hardware presets","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /presets","href":"/api-reference/catalogue/list-hardware-presets"}]},{"group":"Images","pages":[{"title":"List images","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /images","href":"/api-reference/images/list-images"}]},{"group":"SSH keys","pages":[{"title":"Register an SSH key","deprecated":null,"version":null,"openapi":"/public-v1.yaml post /ssh-keys","href":"/api-reference/ssh-keys/register-an-ssh-key"},{"title":"Get an SSH key","deprecated":null,"version":null,"openapi":"/public-v1.yaml get /ssh-keys/{id}","href":"/api-reference/ssh-keys/get-an-ssh-key"}]}]},{"title":"API changelog","sidebarTitle":"Changelog","href":"/public-api/api-changelog"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Read an instance's metrics - Hivenet Docs","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","CodeSnippet-BBA8eWiP.js","SectionHeading-AR_EzDYe.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","getApiPlaygroundDisplay-DMK5GRGS.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}