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

# Get Cluster Node Metrics

> Per-node GPU and host metrics for one dedicated cluster. The
caller must be a member of the team the cluster is dedicated to; any
other cluster id (or a `node` outside the cluster) is a 404. A 200
with `available=false` means there is no data for the cluster; a
503 means the metrics store cannot be reached.



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/v1/model-factory/clusters/{cluster_id}/metrics/nodes
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/model-factory/clusters/{cluster_id}/metrics/nodes:
    get:
      tags:
        - factory
      summary: Get Cluster Node Metrics
      description: |-
        Per-node GPU and host metrics for one dedicated cluster. The
        caller must be a member of the team the cluster is dedicated to; any
        other cluster id (or a `node` outside the cluster) is a 404. A 200
        with `available=false` means there is no data for the cluster; a
        503 means the metrics store cannot be reached.
      operationId: >-
        get_cluster_node_metrics_api_v1_model_factory_clusters__cluster_id__metrics_nodes_get
      parameters:
        - name: cluster_id
          in: path
          required: true
          schema:
            type: string
            title: Cluster Id
        - name: window
          in: query
          required: false
          schema:
            enum:
              - 1h
              - 6h
              - 24h
              - 7d
            type: string
            description: >-
              Series window; the step scales with it (1h->60s, 6h->5min,
              24h->15min, 7d->2h)
            default: 1h
            title: Window
          description: >-
            Series window; the step scales with it (1h->60s, 6h->5min,
            24h->15min, 7d->2h)
        - name: node
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Return only this node, with its per-GPU breakdown
            title: Node
          description: Return only this node, with its per-GPU breakdown
        - name: current_only
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Latest values only: skips the range queries the series are built
              from, so it answers in roughly half the time
            default: false
            title: Current Only
          description: >-
            Latest values only: skips the range queries the series are built
            from, so it answers in roughly half the time
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClusterNodeMetricsResponse'
        '401':
          description: Authorization failed
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    ClusterNodeMetricsResponse:
      properties:
        schema_version:
          type: integer
          enum:
            - 1
          const: 1
          title: Schema Version
          default: 1
        cluster_id:
          type: string
          title: Cluster Id
        cluster_display_name:
          type: string
          title: Cluster Display Name
        window:
          type: string
          enum:
            - 1h
            - 6h
            - 24h
            - 7d
          title: Window
        step_seconds:
          type: integer
          title: Step Seconds
        as_of:
          type: string
          format: date-time
          title: As Of
        available:
          type: boolean
          title: Available
        unavailable_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Unavailable Reason
        unavailable_code:
          anyOf:
            - type: string
              enum:
                - no_cluster_label
                - no_data
            - type: 'null'
          title: Unavailable Code
        nodes:
          items:
            $ref: '#/components/schemas/NodeMetrics'
          type: array
          title: Nodes
      additionalProperties: false
      type: object
      required:
        - cluster_id
        - cluster_display_name
        - window
        - step_seconds
        - as_of
        - available
        - nodes
      title: ClusterNodeMetricsResponse
      description: |-
        `available=false` means the cluster exists and the caller may see
        it but there is nothing to show; `unavailable_reason` is then a short
        user-facing sentence. A metrics store that cannot be reached is a 503,
        not a 200 with `available=false`.
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    NodeMetrics:
      properties:
        name:
          type: string
          title: Name
        gpu_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Gpu Type
        gpu_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Gpu Count
        state:
          type: string
          enum:
            - ready
            - not_ready
            - cordoned
          title: State
        current:
          $ref: '#/components/schemas/MetricValues'
        series:
          additionalProperties:
            items:
              $ref: '#/components/schemas/MetricPoint'
            type: array
          type: object
          title: Series
        gpus:
          items:
            $ref: '#/components/schemas/GpuMetrics'
          type: array
          title: Gpus
          default: []
        ib_ports:
          items:
            $ref: '#/components/schemas/IbPortMetrics'
          type: array
          title: Ib Ports
          default: []
      additionalProperties: false
      type: object
      required:
        - name
        - state
        - current
        - series
      title: NodeMetrics
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
    MetricValues:
      properties:
        gpu_util_percent:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Util Percent
        gpu_memory_used_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Gpu Memory Used Bytes
        gpu_memory_total_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Gpu Memory Total Bytes
        gpu_temperature_celsius:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Temperature Celsius
        gpu_power_watts:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Power Watts
        cpu_util_percent:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpu Util Percent
        memory_used_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Memory Used Bytes
        memory_total_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Memory Total Bytes
        network_rx_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Network Rx Bytes Per Second
        network_tx_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Network Tx Bytes Per Second
        ib_rx_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Ib Rx Bytes Per Second
        ib_tx_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Ib Tx Bytes Per Second
        ib_errors_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Ib Errors Per Second
        load_1m:
          anyOf:
            - type: number
            - type: 'null'
          title: Load 1M
        tcp_retransmits_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Tcp Retransmits Per Second
        load_5m:
          anyOf:
            - type: number
            - type: 'null'
          title: Load 5M
        load_15m:
          anyOf:
            - type: number
            - type: 'null'
          title: Load 15M
        cpu_iowait_percent:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpu Iowait Percent
        disk_read_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Disk Read Bytes Per Second
        disk_write_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Disk Write Bytes Per Second
        disk_write_latency_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Disk Write Latency Seconds
        shared_fs_available_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Shared Fs Available Bytes
        nfs_requests_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Nfs Requests Per Second
        nfs_rpc_retransmissions_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Nfs Rpc Retransmissions Per Second
        tcp_timeouts_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Tcp Timeouts Per Second
        tcp_listen_drops_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Tcp Listen Drops Per Second
        udp_errors_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Udp Errors Per Second
        gpu_sm_clock_mhz:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Sm Clock Mhz
        gpu_memory_clock_mhz:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Memory Clock Mhz
        gpu_memory_copy_util_percent:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Memory Copy Util Percent
        gpu_pcie_rx_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Pcie Rx Bytes Per Second
        gpu_pcie_tx_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Pcie Tx Bytes Per Second
        gpu_nvlink_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Nvlink Bytes Per Second
      additionalProperties: false
      type: object
      title: MetricValues
      description: >-
        Latest values for a node or a single GPU.


        Node-level GPU values aggregate over the node's GPUs: utilization is

        the mean, memory (used and total) and power are summed, temperature is
        the hottest

        GPU. Host fields (cpu, memory, network) are always null on a GPU.

        InfiniBand fields sum the node's IB/RDMA ports (node_exporter's

        infiniband collector, which also lists RoCE devices); the error rate

        counts receive, symbol and link-down errors. On an IB port only the

        `ib_*` fields are set.


        `load_1m`, `tcp_retransmits_per_second` and disk read/write throughput

        are set on every node. The other host keys (load 5m/15m, iowait, disk

        write latency, shared filesystem, NFS client, TCP timeouts and listen

        drops, UDP errors) are set only on a

        `?node=` request, and the clock, copy-util, PCIe and NVLink `gpu_*`

        keys only on its `gpus[]`. Disk keys skip loop, RAM and dm/md devices;

        write latency is seconds per completed write.
        `shared_fs_available_bytes`

        is the lowest free space among the node's network/parallel filesystem

        mounts. On a `?node=` request with a step over 3 minutes, every error

        rate (`ib_errors`, TCP, UDP, NFS retransmissions) point is the peak 3m

        rate within its step.
    MetricPoint:
      properties:
        timestamp:
          type: integer
          title: Timestamp
        value:
          anyOf:
            - type: number
            - type: 'null'
          title: Value
      additionalProperties: false
      type: object
      required:
        - timestamp
      title: MetricPoint
    GpuMetrics:
      properties:
        index:
          type: integer
          title: Index
        current:
          $ref: '#/components/schemas/MetricValues'
        series:
          additionalProperties:
            items:
              $ref: '#/components/schemas/MetricPoint'
            type: array
          type: object
          title: Series
      additionalProperties: false
      type: object
      required:
        - index
        - current
        - series
      title: GpuMetrics
    IbPortMetrics:
      properties:
        device:
          type: string
          title: Device
        port:
          type: string
          title: Port
        state:
          anyOf:
            - type: string
              enum:
                - down
                - init
                - armed
                - active
                - active_defer
            - type: 'null'
          title: State
        physical_state:
          anyOf:
            - type: string
              enum:
                - sleep
                - polling
                - disabled
                - training
                - link_up
                - error_recovery
                - phy_test
            - type: 'null'
          title: Physical State
        rate_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Rate Bytes Per Second
        symbol_errors:
          anyOf:
            - type: integer
            - type: 'null'
          title: Symbol Errors
        link_downed:
          anyOf:
            - type: integer
            - type: 'null'
          title: Link Downed
        receive_errors:
          anyOf:
            - type: integer
            - type: 'null'
          title: Receive Errors
        current:
          $ref: '#/components/schemas/IbPortValues'
          default: {}
        series:
          additionalProperties:
            items:
              $ref: '#/components/schemas/MetricPoint'
            type: array
          type: object
          title: Series
          default: {}
      additionalProperties: false
      type: object
      required:
        - device
        - port
      title: IbPortMetrics
      description: |-
        One IB/RDMA port. Link status and error counts are listed for every
        node; `current` and `series` are filled only with `?node=`.
    IbPortValues:
      properties:
        ib_rx_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Ib Rx Bytes Per Second
        ib_tx_bytes_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Ib Tx Bytes Per Second
        ib_errors_per_second:
          anyOf:
            - type: number
            - type: 'null'
          title: Ib Errors Per Second
      additionalProperties: false
      type: object
      title: IbPortValues
      description: '`MetricValues` narrowed to the three keys an IB port carries.'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````