Skip to content

[TUI] Render Executor's system & process metrics #1642

@martin-g

Description

@martin-g
➜  ~ curl -s http://localhost:50050/api/executors | jq
[
  {
    "id": "aa68ce95-4175-404e-a036-db12d7399e79",
    "host": "127.0.0.1",
    "port": 50051,
    "last_seen": 1777154502000,
    "specification": {
      "task_slots": 14
    },
    "metrics": [
      {
        "type": "proc_physical_memory",
        "value": 34521088
      },
      {
        "type": "proc_virtual_memory",
        "value": 454171721728
      }
    ]
  }
]
➜  ~ curl -s http://localhost:50050/api/executor/aa68ce95-4175-404e-a036-db12d7399e79 | jq
{
  "executor_info": {
    "id": "aa68ce95-4175-404e-a036-db12d7399e79",
    "host": "127.0.0.1",
    "port": 50051,
    "last_seen": 1777154562000,
    "specification": {
      "task_slots": 14
    },
    "metrics": [
      {
        "type": "proc_physical_memory",
        "value": 36339712
      },
      {
        "type": "proc_virtual_memory",
        "value": 454207553536
      }
    ]
  },
  "os_info": {
    "system_name": "Darwin",
    "kernel_ver": "Darwin 25.4.0",
    "os_ver": "26.4.1",
    "os_ver_long": "macOS 26.4.1",
    "physical_cores": 14,
    "num_disks": 2,
    "total_disk_space": 1989325168640,
    "total_available_disk_space": 1342051923950,
    "open_files_limit": 10240
  }
}

one note, @sandugood peak memory disappeared from this version, not sure if i'm doing something wrong ?

we had a

    "peaks": {
      "physical_memory": 0,
      "virtual_memory": 0
    }

previously and we said we're going to merge it with metrics adding peak_physical_memory and peak_virtual_memory ?

Originally posted by @milenkovicm in #1547 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions