Repository navigation
Description
What's the problem
Parent: #2478. The host's CPU, load, memory and HugePages are read as live snapshots only (collector/system.py, shown by build_system): nothing is stored, the payload has no sample age and no unavailable state, and a failed read falls back to zeros, so a missing reading looks like a live one. The only host-level history is disk_growth (hourly Monero DB bytes plus disk used and total GB), which is kept permanently. Nothing tells a user whether memory is under pressure over time or when the disk may fill.
This issue was written for a standalone server-health screen (mockup 24 of the 36-screen Sovereign studies). That screen is not built: #2523 was folded into #2540, and under the lean UI (#3566 section G) server health is a section of Advanced > Maintenance. The need is kept as the data capability behind that section. This issue builds no screen and does no work on the current dashboard UI.
What it impacts
Users of the Maintenance server-health section (#2540) on the appliance and on DIY who need to know whether the host is healthy and whether its disk is filling. Touches the dashboard collector, storage and state payload only. Miners and nodes are untouched.
How I found it
From the previous body of this issue, the 2026-09-23 investigation brief in the comments, a re-check of the source on develop-v2.1.0 on 2026-10-27, the lean roadmap row (P4, later, only on demand), #3566 section G and the owner ruling of 2026-10-27 (work deferred issues now; every feature moves to the new UI).
The re-check confirmed: system snapshots are not persisted; disk_growth is the only host history, sampled hourly and never pruned (the 90-day retention belongs to network_history, not to disk_growth); no sample-age or unavailable signal exists. Nothing was run for this rewrite. Not confirmed: whether #2540's server-health section will show trends or only current values; #3566 section G lists "server health" without saying.
How important is it
Low: lean roadmap P4, later, only on demand; it is not needed for the lean cutover or any release gate. It is workable now because the owner lifted the pause on deferred work on 2026-10-27, and it is backend-only, so it can start without the shell (#2513) or #2540.
Acceptance criteria
- Document units, source, sample age and unavailable state for CPU/load, memory, swap, filesystem capacity and the existing disk-growth history, in the dashboard documentation.
- Reuse first: the current snapshots and the
disk_growthseries. A new table or collector exists only for a series that the Maintenance server-health section (Sovereign: build maintenance health and contextual troubleshooting #2540, v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 G) will show; the PR lists each such series and why. - Every new series states its retention (permanent like
disk_growth, or pruned likenetwork_history) with rows per day and a total bound, and a test proves the bound. - Capacity outlook is computed over the existing hourly
disk_growthseries and exposed as an estimate with its basis (window and sample count). Below a minimum sample count, or after the disk total changes, it reports insufficient history. It is never a guaranteed disk-full countdown, and missing samples are never treated as zero growth. - Host-resource values carry sample age and an unavailable state in the new payload; a stale or missing sample is never shown as live or as zero. Host resources are kept separate from individual workers and services.
- Tests (tier 1) cover units, gaps, counter resets, clock changes, insufficient history, and disk replacement or resize.
- Added collection and storage cost is measured in a bounded test run (no soak) and stated in the PR.
- No temperature, SMART, I/O latency or per-container collector is added; the payload reports each as unavailable. A missing capability is stated, never replaced by fabricated data.
- No change to the current dashboard UI, no explanatory code comments, no live deployment and no change to miners or nodes.
Possible solutions
- Recommended (from the brief): mirror
disk_growth. Ahost_resource_historytable with hourly capture beside the existing disk-growth write, a get/build read pair on the existing state payload, and the outlook computed server-side over the existing disk series, with no new collector. Choose the retention model explicitly; permanent and 90-day pruned are different shapes. - Smaller first increment, if Sovereign: build maintenance health and contextual troubleshooting #2540 settles on current values only: the sample-age and unavailable envelope plus the disk outlook, with no new table.
- Sovereign: build maintenance health and contextual troubleshooting #2540 displays the result in Advanced > Maintenance (v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566 G); this issue ships data only. If no trend is wanted there, close this as not needed.
- Swap is not collected today (only total and available memory are read): report it as unavailable unless a shown series needs it, rather than adding a collector by default.
Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)
What's the problem
Parent: #2478 · Milestone: Sovereign UI — post-2.0 · After 2.0.0 GA; not a GA release blocker.
Deliverable
Close the data gaps needed for useful Pithead-server health. First reuse current CPU/RAM/disk/huge-page and disk-growth payloads; only add collection/querying where the chosen display requires it.
- Work type: Bounded data capability extension.
- Design references: 24 server health (existing Sovereign mockups attached below; sample data, not runtime evidence).
- Inventory coverage: O4 extension.
Existing Sovereign mockups
Existing concept images with sample data. The acceptance criteria and validated host/API contracts take precedence over illustrative labels or values.
The server view illustrates the intended use of telemetry. Add only validated data sources and label unsupported measurements honestly.
24 · Pithead server health
Complete 36-image gallery · Parent: #2478
what it impacts
Dependencies and boundaries
Build on #2513.
Use the current host/API/schema contract when implementation starts; the design inventory is a baseline, not proof that develop has not changed. Preserve the parent accessibility, privacy, offline and authority rules. Any missing backend capability must be explicit, never represented by fabricated live data.
How I found it
Verification
Check units, gaps, clock/sample age, counter resets, insufficient history, disk changes and bounded storage; measure the added collection cost. Follow #2478's required checks and attach sanitized visual evidence to the implementing PR. This issue does not authorize a live deployment or changes to miners/nodes.
how important is it
Importance has not been assessed explicitly; triage must state the priority and its reason.
acceptance criteria
Acceptance criteria
- Document units, source, sample age and unavailable states for CPU/load, memory/swap, filesystem capacity and existing disk-growth history.
- Provide bounded historical resource queries/retention sufficient for the server page, using existing storage and polling where possible.
- Make capacity outlook an explicitly uncertain estimate based on adequate samples; do not produce a guaranteed disk-full countdown or treat missing growth as zero.
- Bound collection/storage cost and separate dashboard-host resources from individual workers and services.
- Treat temperature, SMART, I/O latency and per-container breakdown as optional capabilities: report availability, and leave unsupported collectors out of this first increment.
possible solutions
No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity
pithead-developer commentedon Sep 24, 2026
Investigation brief (operator pre-read, 2026-09-23) — corrected
still_valid: yes. On develop @ a5af51a (checked directly; brief's cited 8f01302 is an ancestor, no behavior changed between them), CPU/RAM/disk/hugepage are still computed as pure snapshots —
collector/system.py:31-47,52-79,84-91,95-121,128-170(get_disk_usage, get_memory_usage, get_load_average, get_cpu_usage, get_hugepages_status) — with no persistence, andweb/views/infra_views.py:62-108(build_system) renders only the live value each poll. No CHANGELOG or merged/open PR addresses host resource history (verified viagh pr listsearch and grep forhost_resource_history/capacity_outlook/sample_age— no hits anywhere in the tree).root_cause: unbuilt design work, not a regression — confirmed as stated. The only bounded/history telemetry table today is
disk_growth(storage_schema.py:221-224, hourly wall-clock capture gated by_HOURLY_CAPTURE_SECatdata_service.py:83,534-540, read viatelemetry_store.py:133-166, bucketed for/api/statebyseries_views.py:169-175). Correction: disk_growth has NO retention pruning — it is permanent ("Permanent (no retention prune — tiny, ~24 rows/day; it's a capacity trend line)",storage_schema.py:222,telemetry_store.py:141, andseries_views.py:171confirms "the table keeps every row (no retention prune)"). The 90-day figure the original brief attached to disk_growth actually belongs to its siblingnetwork_history(NETWORK_HISTORY_RETENTION_SEC = 90 * 24 * 3600,telemetry_store.py:32). There is still no equivalent history table for CPU/memory/load, and no sample-age/unavailable-state signal anywhere in the payload.fix_shape: mirror the disk_growth pattern — a
host_resource_historytable + hourly capture alongside the existing disk_growth write, aget_/build_read pair on the same/api/stateshape, and a capacity-outlook estimate computed server-side over the existing disk_growth series (no new collector). Pick which sibling table's persistence model to mirror explicitly: disk_growth's permanent/unpruned model, or network_history's 90-day-pruned model — they are not the same shape and the ruling below should not default to "disk_growth exactly (hourly, 90-day)," which conflates the two. Sample-age/unavailable tokens are a smaller, separable follow-on tobuild_system. Temperature/SMART/I-O-latency/per-container stay out per the issue's own AC.evidence_tier: inferred (file:line above, re-verified directly against the checkout, not just grepped); no runtime/PR evidence, none exists yet. Tier-follows-the-path: not applicable yet since not ready, but note for when it is — this is dashboard collector/storage/API code only, touching none of build/, compose, config rendering, control plane, deploy/upgrade/restore, merge-mining, Tor, miners, or os/, so the implementing PR needs no tier4-e2e/tier4-kvm job; a tier-1 test suffices.
Blocked on #2513 (Sovereign nav, same milestone, open — confirmed via
gh issue view 2513) per the issue's stated "Build on #2513" dependency; parent #2478 (confirmed open, same milestone) is the design-authority umbrella, not a code blocker.rulings_needed:
/api/state) land ahead of Sovereign: build navigation, page headers and persistent status #2513's UI, or must it wait? Default: proceed independently, it's backend-only.Triage recommendation: MOVE-sovereign-ui — confirmed via
gh issue view 2522: milestone is already "Sovereign UI — post-2.0", body states "After 2.0.0 GA; not a GA release blocker." Nothing here touches security, data loss, or the Tari fork, so the current placement is correct; no operator action needed on milestone.Verify against the code before relying on this; it was written by an investigator, not the implementer.
pithead-developer commentedon Oct 27, 2026
Questions before work continues (answer here, then remove the
questionlabel):Should Maintenance show current host values only, or resource trends—and, if trends, which series? My default is current values with sample age and unavailable states, plus a capacity estimate using existing disk_growth history, because no accepted UI requirement identifies new resource-history series.
pithead-architect commentedon Oct 27, 2026
Escalated to the human operator; the ruling lands in the runner's private question file and the worker resumes from it.
pithead-developer commentedon Oct 27, 2026
Blocked on #3590. PR #3738’s required standalone check fails with the existing Tari-marker signature tracked by #3590; its test and harness are unchanged by this PR, and the prescribed retry was refused. Evidence and the blocker explanation are posted on both threads and in the PR body. The host-resource work remains complete; #3590’s owner must land the correction before this branch can incorporate it and obtain new-head CI and review.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 30, 2026
Blocked on #3786. The required image check fails on the unchanged donation-planner precision test owned by #3786; its exact input reproduces locally. Evidence and the blocker explanation are posted on the canonical issue and PR #3738. Host-resource work remains validated; PR #3789 must land after #3795, then this branch can incorporate the fix and obtain new-head CI and review.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 31, 2026
Merged in #3738.
dashboard: fix #2522 host values and capacity outlook (#3738)