komrad

get_memory_history

Read what komrad and its agents cost in memory at each sample over the last ten minutes, and what one owner cost alongside it.

read-onlyidempotentCLI onlySystem

Calling it#

curl -X POST http://127.0.0.1:8787/komrad.system.v1.SystemService/GetMemoryHistory \
  -H 'Content-Type: application/json' \
  -d '{}'

Request#

GetMemoryHistoryRequest#

FieldTypeDescription
one of

The owner whose own samples to read alongside the total. Unset reads the total alone.

partKomradPart

The part of komrad's own share.

agent_iduuid

The agent's id.

Response#

GetMemoryHistoryResponse#

FieldTypeDescription
totalMemorySample[]

What komrad and its agents cost at each sample over the last ten minutes, oldest first.

ownerMemorySample[]

What the named owner cost at each sample over the last ten minutes, oldest first. Empty when the request names no owner, or one that held no memory in that time.

Types#

MemorySample#

MemorySample is what something cost in memory at one sample.

FieldTypeDescription
sampled_attimestamp

When komrad took the sample.

bytesint64

What it cost at that sample.

KomradPart#

KomradPart is one part of komrad's own share of memory.

ValueDescription
server

The server process.

postgres

The embedded Postgres and its backends.

tmux

The tmux server on komrad's socket.

language_servers

The language servers komrad runs over checkouts.

hooks

The hooks and scripts komrad runs.

panel

The panel.

leftover_agent_processes

The processes left running by archived agents.

unattributed

What komrad's cgroup holds outside the cgroups of its parts and its agents, such as what the server held before komrad split its cgroup.