---
title: "Server Metrics"
method: GET
path: "/servers/{id}/metrics"
tags: ["Metrics"]
---

# Server Metrics

`GET /servers/{id}/metrics`

## Request

- Base URL: `https://gpucloud.ca/api`
- URL: `https://gpucloud.ca/api/servers/{id}/metrics`
- Auth: HTTP bearer

Get CPU, RAM, and network metrics for a server.

## Response `200`

Server metrics

- object
  - `data` Metrics
    - `cpu` object
      - `timestamps` string[]
      - `values` number[]
    - `ram` object
      - `timestamps` string[]
      - `values` number[]
    - `network_in` object
      - `timestamps` string[]
      - `values` number[]
    - `network_out` object
      - `timestamps` string[]
      - `values` number[]

## Other responses

- `400`: Server not yet provisioned
- `401`: No API key (accountAction.code NO_API_KEY) or an invalid, expired, revoked or read only key on a write (INVALID_API_KEY). Provide a valid API key as `Authorization: Bearer <key>`; accountAction gives the links to create an account and a key.
- `404`: Resource not found
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/gpucloud/apis/gpu-cloud-api.md) · [All operations](https://skmtc.dev/gpucloud/apis/gpu-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gpucloud/apis/gpu-cloud-api/revisions/ed530411f5c7?raw)
