Docs are work in progress
Skip to main content

Fetch machine metrics data

POST 

/api/v1/machines/metrics

This API endpoint retrieve metrics data for the machine identified by the provided machineId or machine alias, filtered by the specified metrics label. Note that metrics data is only collected if metrics collection is enabled in machine telemetry. Machine metrics refer to quantitative data points that provide insight into the performance, health, and utilization of a machine.

Request

Body

required

The request body containing the required details to get machine metrics

    metricsLabel stringrequired

    Possible values: [SYSTEM_CPU_UTILIZATION, SYSTEM_MEMORY_USAGE, SYSTEM_CPU_LOAD_AVERAGE_15M, SYSTEM_NETWORK_IO, SYSTEM_DISK_IO, SYSTEM_FILESYSTEMS_USAGE]

    start int64required

    Timestamp in epoch seconds

    end int64required

    Timestamp in epoch seconds

    machineIdOrAlias stringrequired
    timeInterval stringrequired

Responses

Success response

Schema

    success boolean
    message string
    status string
    statusCode int32
    errorCode string
    subErrors object[]

    payload

    object

    Schema for telemetry data response type

    status string

    data

    object

    Schema for telemetry data

    resultType string

    result

    object[]

  • Array [

  • metric

    object

    Schema for telemetry data metrics

    state string
    device string
    machine_id string
    direction string
    type string
    system_cpu_logical_number string
    values array[]
  • ]

Loading...