Three dashboards served by one FastAPI app with a SQLite history store
(raw / 1m / 1h) and hand-written SVG charts: no Prometheus, no Grafana,
no CDN, no build step. Nothing is fetched from the internet at runtime.
* system: a stdlib-only agent (agent/host_agent.py) reports /proc and
/sys counters; the dashboard turns them into rates over a labelled
window, so every number says how it was measured.
* llm: gufo/llama.cpp and vLLM /metrics are parsed by an in-house
exposition parser. Measured delta/elapsed throughput beats a native
per-request gauge, and each value carries its provenance.
* ups: a NUT wire-protocol client plus health checks that name what
they looked at. Commands are gated by NUT_ALLOW_ACTIONS,
DASH_READ_ONLY and a DANGER confirmation, re-checked server-side.
Missing values render as n/a rather than 0, and an unconfigured source
answers 404 {"configured": false} without dialling anything, so "not
deployed here" never looks like an outage.
253 tests at 94% coverage against captured real fixtures; ruff and
pyright clean.
LLM-Generated: true
1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"ok": true, "schema": 1, "agent_version": "1.0.0", "ts": 1792178443.0380626, "duration_ms": 16.42, "host": {"hostname": "deskwork", "os_pretty": "Fedora Linux 43 (Server Edition)", "os_id": "fedora", "kernel": "7.2.10-100.fc43.x86_64", "arch": "x86_64", "python": "3.14.8", "cpu_model": "AMD RYZEN AI MAX+ 395 w/ Radeon 8060S", "cpu_cores_logical": 32, "cpu_cores_physical": 16, "memory_total_bytes": 134296711168.0, "boot_ts": 1791966026.2263377, "uptime_seconds": 212416.79, "container": false, "agent_version": "1.0.0"}, "cpu": {"modes": {"user": 11853771.0, "nice": 30631.0, "system": 7800223.0, "idle": 658608117.0, "iowait": 1278478.0, "irq": 272815.0, "softirq": 171965.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 680016000.0}, "cores": [{"core": 0, "modes": {"user": 161241.0, "nice": 2482.0, "system": 181664.0, "idle": 20758034.0, "iowait": 84170.0, "irq": 10154.0, "softirq": 98025.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21295770.0}}, {"core": 1, "modes": {"user": 3036916.0, "nice": 3899.0, "system": 1999277.0, "idle": 16097736.0, "iowait": 78610.0, "irq": 21817.0, "softirq": 11019.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21249274.0}}, {"core": 2, "modes": {"user": 27477.0, "nice": 194.0, "system": 38504.0, "idle": 21105062.0, "iowait": 74358.0, "irq": 5205.0, "softirq": 4463.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21255263.0}}, {"core": 3, "modes": {"user": 40264.0, "nice": 322.0, "system": 50965.0, "idle": 21074920.0, "iowait": 78178.0, "irq": 5379.0, "softirq": 2653.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21252681.0}}, {"core": 4, "modes": {"user": 12339.0, "nice": 50.0, "system": 18672.0, "idle": 21143856.0, "iowait": 73655.0, "irq": 3131.0, "softirq": 960.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21252663.0}}, {"core": 5, "modes": {"user": 2987777.0, "nice": 5267.0, "system": 2058104.0, "idle": 16093690.0, "iowait": 78318.0, "irq": 19761.0, "softirq": 6254.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21249171.0}}, {"core": 6, "modes": {"user": 27123.0, "nice": 157.0, "system": 40320.0, "idle": 21106702.0, "iowait": 73832.0, "irq": 4308.0, "softirq": 1707.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21254149.0}}, {"core": 7, "modes": {"user": 54218.0, "nice": 600.0, "system": 67005.0, "idle": 21046582.0, "iowait": 77817.0, "irq": 4718.0, "softirq": 2139.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21253079.0}}, {"core": 8, "modes": {"user": 9116.0, "nice": 54.0, "system": 9701.0, "idle": 21214665.0, "iowait": 4241.0, "irq": 3408.0, "softirq": 1452.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242637.0}}, {"core": 9, "modes": {"user": 2678.0, "nice": 13.0, "system": 5004.0, "idle": 21229457.0, "iowait": 3203.0, "irq": 1937.0, "softirq": 581.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242873.0}}, {"core": 10, "modes": {"user": 8878.0, "nice": 57.0, "system": 10567.0, "idle": 21213579.0, "iowait": 4191.0, "irq": 3808.0, "softirq": 1295.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242375.0}}, {"core": 11, "modes": {"user": 5209.0, "nice": 19.0, "system": 11177.0, "idle": 21122513.0, "iowait": 3935.0, "irq": 92258.0, "softirq": 2458.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21237569.0}}, {"core": 12, "modes": {"user": 5711.0, "nice": 29.0, "system": 9129.0, "idle": 21218831.0, "iowait": 4074.0, "irq": 3661.0, "softirq": 986.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242421.0}}, {"core": 13, "modes": {"user": 9500.0, "nice": 55.0, "system": 11420.0, "idle": 21211495.0, "iowait": 4527.0, "irq": 4075.0, "softirq": 1374.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242446.0}}, {"core": 14, "modes": {"user": 19547.0, "nice": 225.0, "system": 17679.0, "idle": 21191182.0, "iowait": 5290.0, "irq": 5812.0, "softirq": 2263.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21241998.0}}, {"core": 15, "modes": {"user": 5107.0, "nice": 18.0, "system": 8122.0, "idle": 21220032.0, "iowait": 4678.0, "irq": 3648.0, "softirq": 1318.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242923.0}}, {"core": 16, "modes": {"user": 39840.0, "nice": 1336.0, "system": 55418.0, "idle": 21072844.0, "iowait": 77726.0, "irq": 4164.0, "softirq": 1907.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21253235.0}}, {"core": 17, "modes": {"user": 2740774.0, "nice": 7235.0, "system": 1497928.0, "idle": 16925780.0, "iowait": 71401.0, "irq": 14355.0, "softirq": 3007.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21260480.0}}, {"core": 18, "modes": {"user": 12430.0, "nice": 81.0, "system": 20880.0, "idle": 21141310.0, "iowait": 74870.0, "irq": 3264.0, "softirq": 945.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21253780.0}}, {"core": 19, "modes": {"user": 13385.0, "nice": 91.0, "system": 24405.0, "idle": 21147926.0, "iowait": 73823.0, "irq": 5355.0, "softirq": 1108.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21266093.0}}, {"core": 20, "modes": {"user": 7403.0, "nice": 34.0, "system": 14486.0, "idle": 21153607.0, "iowait": 74026.0, "irq": 2564.0, "softirq": 524.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21252644.0}}, {"core": 21, "modes": {"user": 2561133.0, "nice": 7978.0, "system": 1548359.0, "idle": 17036167.0, "iowait": 71516.0, "irq": 24116.0, "softirq": 18818.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21268087.0}}, {"core": 22, "modes": {"user": 14788.0, "nice": 66.0, "system": 23346.0, "idle": 21136484.0, "iowait": 74584.0, "irq": 3438.0, "softirq": 1115.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21253821.0}}, {"core": 23, "modes": {"user": 18139.0, "nice": 245.0, "system": 32400.0, "idle": 21134461.0, "iowait": 74471.0, "irq": 5549.0, "softirq": 1292.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21266557.0}}, {"core": 24, "modes": {"user": 4533.0, "nice": 16.0, "system": 6462.0, "idle": 21224318.0, "iowait": 3992.0, "irq": 2693.0, "softirq": 854.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242868.0}}, {"core": 25, "modes": {"user": 3527.0, "nice": 8.0, "system": 5370.0, "idle": 21228521.0, "iowait": 3431.0, "irq": 1972.0, "softirq": 444.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21243273.0}}, {"core": 26, "modes": {"user": 4101.0, "nice": 9.0, "system": 5766.0, "idle": 21226447.0, "iowait": 4130.0, "irq": 1984.0, "softirq": 489.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242926.0}}, {"core": 27, "modes": {"user": 2828.0, "nice": 9.0, "system": 4579.0, "idle": 21229770.0, "iowait": 3729.0, "irq": 1797.0, "softirq": 353.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21243065.0}}, {"core": 28, "modes": {"user": 3267.0, "nice": 10.0, "system": 5105.0, "idle": 21228103.0, "iowait": 4192.0, "irq": 1785.0, "softirq": 398.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242860.0}}, {"core": 29, "modes": {"user": 4054.0, "nice": 13.0, "system": 5645.0, "idle": 21226362.0, "iowait": 4291.0, "irq": 2068.0, "softirq": 453.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242886.0}}, {"core": 30, "modes": {"user": 7104.0, "nice": 37.0, "system": 7378.0, "idle": 21220463.0, "iowait": 4708.0, "irq": 2458.0, "softirq": 755.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21242903.0}}, {"core": 31, "modes": {"user": 3347.0, "nice": 7.0, "system": 5370.0, "idle": 21227203.0, "iowait": 4496.0, "irq": 2157.0, "softirq": 542.0, "steal": 0.0, "guest": 0.0, "guest_nice": 0.0, "total": 21243122.0}}], "clock_ticks_per_second": 100, "load1": 1.92, "load5": 1.8, "load15": 2.02, "procs_running": 1.0, "procs_blocked": 0.0, "ctxt_total": 523554930.0, "processes_total": 1168739.0, "freq_mhz": 2185.16434375, "freq_max_mhz": 5187.5}, "memory": {"total_bytes": 134296711168.0, "free_bytes": 2958434304.0, "available_bytes": 12516724736.0, "used_bytes": 121779986432.0, "buffers_bytes": 32768.0, "cached_bytes": 10943029248.0, "dirty_bytes": 1863680.0, "swap_total_bytes": 0.0, "swap_used_bytes": 0.0, "committed_bytes": 18375344128.0}, "filesystems": [{"device": "/dev/nvme0n1p3", "mountpoint": "/", "fstype": "btrfs", "total_bytes": 998043025408, "used_bytes": 740790976512, "free_bytes": 251342389248, "used_pct": 74.6664714722637, "read_only": false}, {"device": "/dev/nvme0n1p2", "mountpoint": "/boot", "fstype": "btrfs", "total_bytes": 1073741824, "used_bytes": 765698048, "free_bytes": 191717376, "used_pct": 79.97552878362653, "read_only": false}, {"device": "/dev/nvme0n1p1", "mountpoint": "/boot/efi", "fstype": "vfat", "total_bytes": 1071628288, "used_bytes": 7868416, "free_bytes": 1063759872, "used_pct": 0.73424862782271, "read_only": false}, {"device": "/dev/nvme0n1p3", "mountpoint": "/btrfs", "fstype": "btrfs", "total_bytes": 998043025408, "used_bytes": 740790976512, "free_bytes": 251342389248, "used_pct": 74.6664714722637, "read_only": false}, {"device": "/dev/nvme0n1p3", "mountpoint": "/home", "fstype": "btrfs", "total_bytes": 998043025408, "used_bytes": 740790976512, "free_bytes": 251342389248, "used_pct": 74.6664714722637, "read_only": false}], "disk_io": {"devices": [{"name": "nvme0n1", "model": "PCIe SSD", "rotational": false, "size_bytes": 1000204886016.0, "reads_total": 64020120.0, "writes_total": 1328401.0, "read_bytes_total": 977963038720.0, "write_bytes_total": 53677868032.0, "in_flight": 0.0, "io_time_ms_total": 25161781.0, "weighted_io_ms_total": 49058985.0, "discard_bytes_total": 32813576192.0}], "device_names": ["nvme0n1"]}, "network": {"interfaces": [{"name": "enp191s0", "rx_bytes_total": 3097623492.0, "rx_packets_total": 6408628.0, "rx_errors_total": 0.0, "rx_dropped_total": 13.0, "tx_bytes_total": 3711578389.0, "tx_packets_total": 4898468.0, "tx_errors_total": 0.0, "tx_dropped_total": 0.0, "speed_mbps": 5000.0}]}, "gpus": [{"index": 0, "card": "card1", "vendor": "AMD", "model": "Radeon 8060S Graphics", "model_full": "Advanced Micro Devices, Inc. [AMD/ATI] Strix Halo [Radeon Graphics / Radeon 8050S Graphics / Radeon 8060S Graphics]", "pci_slot": "0000:c1:00.0", "pci_address": "1002:1586", "driver": "amdgpu", "busy_pct": 62.0, "vram_total_bytes": 536870912.0, "vram_used_bytes": 180658176.0, "gtt_total_bytes": 133143986176.0, "gtt_used_bytes": 104393768960.0, "power_watts": 70.217, "temps": {"edge": 56.0}, "clocks": {"sclk": 2006.0}}], "temperatures": [{"kind": "hwmon", "chip": "acpitz", "label": "acpitz", "celsius": 54.8}, {"kind": "hwmon", "chip": "acpitz", "label": "acpitz", "celsius": 56.8}, {"kind": "hwmon", "chip": "acpitz", "label": "acpitz", "celsius": 53.8}, {"kind": "hwmon", "chip": "acpitz", "label": "acpitz", "celsius": 83.8}, {"kind": "hwmon", "chip": "nvme", "label": "Composite", "celsius": 51.85}, {"kind": "hwmon", "chip": "amdgpu", "label": "edge", "celsius": 56.0}, {"kind": "hwmon", "chip": "k10temp", "label": "Tctl", "celsius": 80.125}, {"kind": "hwmon", "chip": "r8169_0_bf00:00", "label": "r8169_0_bf00:00", "celsius": 68.0}, {"kind": "hwmon", "chip": "cros_ec", "label": "mainboard_power@4d", "celsius": 54.85}, {"kind": "hwmon", "chip": "cros_ec", "label": "mainboard_memory@4d", "celsius": 56.85}, {"kind": "hwmon", "chip": "cros_ec", "label": "mainboard_ambient@4d", "celsius": 53.85}, {"kind": "hwmon", "chip": "cros_ec", "label": "cpu@4c", "celsius": 83.85}, {"kind": "hwmon", "chip": "cros_ec", "label": "cpu_virtual@4c", "celsius": 75.85}, {"kind": "thermal", "chip": "acpitz", "label": "acpitz", "celsius": 54.8}, {"kind": "thermal", "chip": "acpitz", "label": "acpitz", "celsius": 56.8}, {"kind": "thermal", "chip": "acpitz", "label": "acpitz", "celsius": 53.8}, {"kind": "thermal", "chip": "acpitz", "label": "acpitz", "celsius": 83.8}], "cpu_temperature_celsius": 80.125, "processes": {"total": 495, "top_rss": [{"pid": 1032371, "name": "gufo", "rss_bytes": 15113818112.0}, {"pid": 1240, "name": "osbuild-compose", "rss_bytes": 397737984.0}, {"pid": 801, "name": "systemd-journal", "rss_bytes": 95752192.0}, {"pid": 1248, "name": "osbuild-worker", "rss_bytes": 52178944.0}, {"pid": 1412, "name": "rsyslogd", "rss_bytes": 51032064.0}], "top_cpu": [{"pid": 1164998, "name": "python3", "cpu_pct": 3.107202572109063}, {"pid": 1, "name": "systemd", "cpu_pct": 0.0}, {"pid": 2, "name": "kthreadd", "cpu_pct": 0.0}, {"pid": 3, "name": "pool_workqueue_release", "cpu_pct": 0.0}, {"pid": 4, "name": "kworker/R-rcu_gp", "cpu_pct": 0.0}]}, "errors": []} |