---
title: "Get server metrics"
method: GET
path: "/projects/{project_id}/servers/{id}/server_metrics"
tags: ["Servers"]
---

# Get server metrics

`GET /projects/{project_id}/servers/{id}/server_metrics`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{project_id}/servers/{id}/server_metrics`
- Auth: HTTP basic

Returns real-time server metrics (CPU, memory, disk, uptime) collected over SSH. Requires beta features and an SSH-capable server.

## Path parameters

- `project_id` string, required
- `id` string, required

## Response `200`

Success

- CpuMemoryDiskObject
  - `cpu` unknown
  - `memory` unknown
  - `disk` unknown
  - `uptime` string
  - `profile` unknown

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: Forbidden
- `422`: Unprocessable Entity
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
