Skip to main content

Retrieve memory stats

GET 

/api/node/:hostname/memory

Get memory usage information for the target node.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

Responses

Memory usage information.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The hostname of the agent.

    status stringrequired

    Possible values: [ok, failed, skipped]

    The status of the operation for this host.

    memory

    object

    Memory usage information.

    total integerrequired

    Total memory in bytes.

    free integerrequired

    Free memory in bytes.

    used integerrequired

    Used memory in bytes.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...