---
title: "Get machine metrics"
method: GET
path: "/api/v1/machines/metrics"
tags: ["Machines"]
---

# Get machine metrics

`GET /api/v1/machines/metrics`

Get machine metrics.

Auth: Required (bearer token).
Scope: Organization-scoped in authenticated context.
Side effects: Read-only operation.

## Query parameters

- `from` string
- `to` string
- `limit` integer

## Headers

- `Accept` string

## Response `200`

OK

- MachineMetricsResponse — MachineMetricsResponse schema
  - `data` object[]
    - `cpu_usage_pct` number, float, nullable
    - `machine_name` string
    - `memory_bytes` integer, nullable
    - `memory_limit_bytes` integer, nullable
    - `net_rx_bytes` integer, nullable
    - `net_rx_drops` integer, nullable
    - `net_rx_packets` integer, nullable
    - `net_tx_bytes` integer, nullable
    - `net_tx_drops` integer, nullable
    - `net_tx_packets` integer, nullable
    - `time` string, date-time
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.net/nixopus/apis/openapi.md) · [All operations](https://skmtc.net/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nixopus/openapi/versions/c5bacaea7239/schema)
