Skip to main content

Retrieve node status

GET 

/node/status

Get the current status of the node including hostname, uptime, load averages, memory, and disk usage.

Request

Query Parameters

    target_hostname string

    Default value: _any

    Target: _any (load-balanced), _all (broadcast), hostname (direct), or key:value (label group, e.g., group:web.dev).

Responses

A JSON object containing the node's status information.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The hostname of the system.

    uptime string

    The uptime of the system.

    load_average

    object

    The system load averages for 1, 5, and 15 minutes.

    1min numberrequired

    Load average for the last 1 minute.

    5min numberrequired

    Load average for the last 5 minutes.

    15min numberrequired

    Load average for the last 15 minutes.

    memory

    object

    Memory usage information.

    total integerrequired

    Total memory in bytes.

    free integerrequired

    Free memory in bytes.

    used integerrequired

    Used memory in bytes.

    disks

    object[]

    List of local disk usage information.

  • Array [

  • name stringrequired

    Disk identifier, e.g., "/dev/sda1".

    total integerrequired

    Total disk space in bytes.

    used integerrequired

    Used disk space in bytes.

    free integerrequired

    Free disk space in bytes.

  • ]

  • os_info

    object

    Operating system information.

    distribution stringrequired

    The name of the Linux distribution.

    version stringrequired

    The version of the Linux distribution.

    error string

    Error message if the agent failed to process the request.

  • ]

Loading...