Skip to main content

List processes

GET 

/node/:hostname/process

List all running processes on 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

List of processes.

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.

    processes

    object[]

    List of processes on this agent.

  • Array [

  • pid integer

    Process identifier.

    name string

    Process name.

    user string

    User running the process.

    state string

    Process state.

    cpu_percent double

    CPU usage percentage.

    mem_percent float

    Memory usage percentage.

    mem_rss int64

    Resident set size in bytes.

    command string

    Full command line.

    start_time string

    Process start time.

  • ]

  • error string

    Error message if the agent failed.

  • ]

Loading...