---
title: "Latest software RAID and drive SMART health for a node."
method: GET
path: "/nodes/{id}/metrics/disk-health"
tags: ["Metrics"]
---

# Latest software RAID and drive SMART health for a node.

`GET /nodes/{id}/metrics/disk-health`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/nodes/{id}/metrics/disk-health`
- Auth: HTTP bearer

Backs the disk-health panel on the server monitoring page. The headline
values are also plain node metrics (`node.raid_degraded`,
`node.disk_wear_percent`, `node.disk_media_errors`) that alert rules read.

## Path parameters

- `id` integer, required

## Response `200`

Disk health

- NodeDiskHealthResponse: Latest disk-array and drive health for a node.
  - `drives` DriveHealthRow[], required
    - `bytes_written` integer, nullable: Bytes written over the drive's lifetime.
    - `device` string, required: Device name, e.g. `nvme0` or `sda`.
    - `media_errors` integer, nullable: Media / reallocated-sector errors the drive has recorded.
    - `wear_percent` number, double, nullable: Percentage of rated endurance used (can exceed 100).
  - `drives_detected` integer, required: Physical drives found on the node.
  - `drives_read` integer, required: Drives whose SMART data could be read.
  - `raid_arrays` RaidArrayHealth[], required
    - `degraded` boolean, required: Fewer members are active than the array was configured with.
    - `devices_failed` integer, required: Members missing or marked failed.
    - `name` string, required: md device name, e.g. `md0`.
  - `reason` string, nullable: Why some or all drive health is missing, when it is.
  - `reported` boolean, required: `false` when the node has never reported disk health.
  - `setup_path` string, required: Console path that shows this node's disk health.
  - `stale` boolean, required: `true` when the node has not reported recently: the arrays and drives above are the last values it sent, not its current state, so they must not be presented as the node's health now.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error
- `503`: Metrics store not available

## Changes

- **2026-10-26** `6882080cc5b5`: 1 info
  - endpoint added
- **2026-10-26** `198448ae2ca3`: 1 breaking
  - api path removed without deprecation
- **2026-10-26** `a086d94641be`: 1 info
  - endpoint added
- **2026-10-26** `284b6df39007`: 1 breaking
  - api path removed without deprecation
- **2026-10-26** `07be4b9cdd45`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/nodes/:id/metrics/disk-health/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
