> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morphllm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Compute Node Metrics

> Read a node's GPU, CPU and RAM utilisation at /api/v1/compute/reservations/{id}/metrics

## Overview

Returns one node's utilisation over a trailing window; the read behind `morph compute metrics` and the dashboard's metrics card. `points` are percent of the whole node per bucket: GPU busy time, GPU memory, CPU and RAM. `gpus` is each GPU as it reads now, with its memory, temperature and power.

A node has metrics when `metrics` is `true` on it in [Get Compute Reservation](https://docs.morphllm.com/api-reference/endpoint/compute-get.md). `minutes` is one of 5, 15, 30, 60, 180, 360, 720, 1440, 2880, 10080 or 43200, and defaults to 360.


## OpenAPI

````yaml GET /api/v1/compute/reservations/{id}/metrics
openapi: 3.1.0
info:
  title: Morph API
  version: 1.2.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, System One typed decisions, speech to text (audio
    transcription and translation), model listing, and dedicated endpoint
    management, agentic credit top-ups paid over x402, account usage and billing
    settings, and organization member budgets. Model ids, prices, and context
    windows are served live at https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: systemone
    description: 'Typed decisions: a state in, a probability distribution per question out.'
  - name: audio
    description: >-
      Speech to text: transcription and translation of audio files,
      OpenAI-compatible.
  - name: models
    description: Model listing.
  - name: dedicated
    description: Dedicated endpoint discovery, status, and cancellation.
  - name: compute
    description: >-
      Dedicated compute: reserve whole GPU nodes by the month, manage SSH keys,
      give notice. Limited preview.
  - name: credits
    description: Agentic credit top-ups paid in USDC over x402.
  - name: account
    description: >-
      Usage and spend per day; billing settings: extra usage, spend limit and
      alert, auto-reload.
  - name: organization
    description: Organization member budgets.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /api/v1/compute/reservations/{id}/metrics:
    get:
      tags:
        - compute
      summary: Get node metrics
      description: >-
        Utilisation of one node over a trailing window: GPU busy time, GPU
        memory, CPU and RAM per bucket, and each GPU as it reads now with its
        memory, temperature and power. The same readings as the dashboard’s
        metrics card. A node has them when its `metrics` is true on the
        reservation.
      operationId: getComputeNodeMetrics
      parameters:
        - schema:
            type: string
            format: uuid
            description: Id of the reservation the node belongs to.
            example: b81f2c40-7d9e-4a35-9c16-3f5a8e0d2b74
          required: true
          description: Identifies the reservation to read metrics for.
          name: id
          in: path
        - schema:
            type: string
            description: A node `name` from the reservation.
            example: node-01
          required: true
          description: The node to read.
          name: node
          in: query
        - schema:
            type: integer
            description: >-
              The trailing window in minutes: one of 5, 15, 30, 60, 180, 360,
              720, 1440, 2880, 10080, 43200. Defaults to 360.
            example: 360
          required: false
          description: How far back to read.
          name: minutes
          in: query
      responses:
        '200':
          description: The node’s utilisation.
          content:
            application/json:
              example:
                node: node-01
                minutes: 360
                points:
                  - ts: '2027-01-04T09:15:00Z'
                    gpuUtilPct: 87.4
                    gpuMemPct: 64.1
                    cpuPct: 12.3
                    memPct: 31.8
                gpus:
                  - index: '0'
                    utilPct: 91
                    memUsedMiB: 62464
                    memTotalMiB: 81920
                    tempC: 67
                    powerW: 412
              schema:
                $ref: '#/components/schemas/ComputeNodeMetrics'
        '400':
          description: '`node` is missing, or `minutes` is not one of the windows offered.'
          content:
            application/json:
              example:
                error: >-
                  Set minutes to one of 5, 15, 30, 60, 180, 360, 720, 1440,
                  2880, 10080, 43200. The default is 360.
              schema:
                $ref: '#/components/schemas/ComputeError'
        '401':
          $ref: '#/components/responses/ComputeUnauthorized'
        '403':
          $ref: '#/components/responses/ComputeForbidden'
        '404':
          description: >-
            No such reservation in the organization, or the node reports no
            metrics.
          content:
            application/json:
              example:
                error: >-
                  Node "node-09" of this reservation reports no metrics.
                  "metrics" on each node of GET
                  /api/v1/compute/reservations/b81f2c40-7d9e-4a35-9c16-3f5a8e0d2b74
                  says which do.
              schema:
                $ref: '#/components/schemas/ComputeError'
        '502':
          description: The metrics store could not be read. Retry.
          content:
            application/json:
              example:
                error: >-
                  Metrics could not be read on our side. Retry in a minute, or
                  email info@morphllm.com.
              schema:
                $ref: '#/components/schemas/ComputeError'
      security:
        - bearerAuth: []
components:
  schemas:
    ComputeNodeMetrics:
      type: object
      properties:
        node:
          type: string
          description: The node read.
          example: node-01
        minutes:
          type: integer
          description: The trailing window, in minutes.
          example: 360
        points:
          type: array
          items:
            type: object
            properties:
              ts:
                type: string
                description: Bucket start, ISO 8601 UTC.
                example: '2027-01-04T09:15:00Z'
              gpuUtilPct:
                type:
                  - number
                  - 'null'
                description: Busy time averaged across the node’s GPUs, in percent.
                example: 87.4
              gpuMemPct:
                type:
                  - number
                  - 'null'
                description: Share of the node’s GPU memory in use, in percent.
                example: 64.1
              cpuPct:
                type:
                  - number
                  - 'null'
                description: CPU in use, in percent.
                example: 12.3
              memPct:
                type:
                  - number
                  - 'null'
                description: RAM in use, in percent.
                example: 31.8
            required:
              - ts
              - gpuUtilPct
              - gpuMemPct
              - cpuPct
              - memPct
          description: >-
            One entry per bucket of the window, oldest first, each a percent of
            the whole node. A value is null where the node sent no reading.
            Buckets widen with the window so a series stays near 90 points, and
            are never under 60 seconds.
          example:
            - ts: '2027-01-04T09:15:00Z'
              gpuUtilPct: 87.4
              gpuMemPct: 64.1
              cpuPct: 12.3
              memPct: 31.8
        gpus:
          type: array
          items:
            type: object
            properties:
              index:
                type: string
                description: GPU index on the node, `0` to `7` on an 8-GPU node.
                example: '0'
              utilPct:
                type:
                  - number
                  - 'null'
                description: Busy time now, in percent.
                example: 91
              memUsedMiB:
                type:
                  - number
                  - 'null'
                description: GPU memory in use, in MiB.
                example: 62464
              memTotalMiB:
                type:
                  - number
                  - 'null'
                description: GPU memory in all, in MiB.
                example: 81920
              tempC:
                type:
                  - number
                  - 'null'
                description: Temperature, in °C.
                example: 67
              powerW:
                type:
                  - number
                  - 'null'
                description: Power draw, in watts.
                example: 412
            required:
              - index
              - utilPct
              - memUsedMiB
              - memTotalMiB
              - tempC
              - powerW
          description: >-
            Each GPU as it reads now: its last sample in the past five minutes.
            Empty when none reported.
          example:
            - index: '0'
              utilPct: 91
              memUsedMiB: 62464
              memTotalMiB: 81920
              tempC: 67
              powerW: 412
      required:
        - node
        - minutes
        - points
        - gpus
      description: Utilisation of one node over a trailing window.
      example:
        node: node-01
        minutes: 360
        points:
          - ts: '2027-01-04T09:15:00Z'
            gpuUtilPct: 87.4
            gpuMemPct: 64.1
            cpuPct: 12.3
            memPct: 31.8
        gpus:
          - index: '0'
            utilPct: 91
            memUsedMiB: 62464
            memTotalMiB: 81920
            tempC: 67
            powerW: 412
    ComputeError:
      type: object
      properties:
        error:
          type: string
          description: Why the request failed and what to change, as one or two sentences.
          example: >-
            Reservation not found. List yours with GET
            /api/v1/compute/reservations.
      required:
        - error
      description: Error body returned by the compute routes.
      example:
        error: >-
          Reservation not found. List yours with GET
          /api/v1/compute/reservations.
  responses:
    ComputeUnauthorized:
      description: Missing or invalid Morph API key on a compute request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ComputeError'
          example:
            error: >-
              Missing or invalid API key. Send "Authorization: Bearer <key>"
              with a key from https://www.morphllm.com/dashboard/api-keys
    ComputeForbidden:
      description: >-
        The account is outside the limited preview, or the key is a personal
        key. A reservation belongs to an organization, so use an organization
        API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ComputeError'
          example:
            error: Compute reservations are not open to this account yet
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.