Skip to content
Sign in

system

v0.1.2

The machine the engine runs on — CPU and each core, memory and swap, load, temperatures, fans, power, pressure, the battery, GPUs, disk I/O and space, SSD health, and network, now (system::snapshot) and over 24 hours (system::history), sampled every second only while someone observes system::on-sample; the busiest processes, each worker's usage and each container's while observed; plus the System page of the iii app.

Install

bash
iii call compose::add worker=system

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

skill doc

SKILL.md

system

The system worker reads the host the engine runs on (Linux /proc and /sys, macOS IOKit) and keeps up to 24 hours of each figure in memory.

Now

iii call system::snapshot

The host (name, OS, kernel, uptime, virtual when it runs in a container or a VM, whose /proc then describes that sandbox), the CPU (model, threads, usage %, cores % each, mhz, load 1/5/15), memory and swap in bytes, every temperature sensor (temps, the CPU's first with id cpu, each with its limit max when the hardware gives one), fans (RPM), power (W, ids gpu:<id> and cpu), pressure (cpu, mem, io: % of the time some task stalled; null where the system gives none), battery (pct, state, time_s, health_pct, cycles; null without one), ssd (each NVMe drive's wear_pct, written_bytes, errors, power_on_h, or error: "permission" when the health log needs root), each GPU (busy %, vram_used/vram_total bytes, c), disk (read_bps, write_bps, busy %), volume (total, used, available bytes) and physical network interface (rx_bps, tx_bps). net_virtual names the interfaces left out (Docker bridges and veths, tunnels, loopback).

system::gpus, system::interfaces, system::disks, system::sensors and system::volumes list those devices as { options: [{ value, label, detail? }] }; the value is the id in the series keys. The GPUs, interfaces and disks start with { value: "", label: "Automatic" | "All interfaces" | "All disks" }, the series without a colon.

Over time

iii call system::history series='["cpu","ram","temp"]' window=1h

window is 1m (a point a second, only filled while someone observes system::on-sample), 15m (10 s points), 1h (1 min) or 24h (15 min). The answer is { window, step_s, end_at, series: { <key>: [number | null] } }, oldest first; null is a gap (the worker was not running, or the figure was unknown). Leave series out for every series.

Keys: cpu, ram, swap, gpu, vram, psi.cpu, psi.mem, psi.io, battery (%), load, temp (°C), power.gpu (every GPU), power.cpu (W), disk.read, disk.write, net.rx, net.tx (B/s), space (% of /), and per device cpu:<n>, temp:<id> (a GPU's is temp:gpu:<gpu id>), fan:<id> (RPM), gpu:<id>, vram:<id>, power.gpu:<id>, disk.read:<id>, disk.write:<id>, net.rx:<id>, net.tx:<id>, space:<mount>. A series the machine lacks is absent.

Notes

  • Percentages of memory are of the total (used = total − available); space is of what can be filled, as df counts it.
  • An agent does not need to observe system::on-sample: one snapshot or one history read answers a question, and observing makes the worker sample every second until the observer is disposed of.
  • The busiest processes, each iii worker's usage and each container's come only from observing system::on-processes, system::on-workers and system::on-containers (a scan every 3 seconds while observed); there is no one-shot call. Observe, take the first event, dispose.

Search the registry

Find workers, kits and executables, or jump to a page.