{# Host vitals strip — compact CPU/MEM/DISK/LOAD + pressure, live-polled into the host hub. Renders nothing until the agent reports (the Agent panel below then shows provisioning). #} {% if reporting %} {% set lbl = "font-size:0.68rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.04em;" %} {% macro vital(label, value, text, kind, spark) %}
{{ label }}
{{ text }}
{{ spark | safe }}
{% endmacro %}
{{ vital("CPU", cpu, ('%.0f%%'|format(cpu) if cpu is not none else '—'), 'cpu', sparks.cpu) }} {{ vital("Memory", mem, ('%.0f%%'|format(mem) if mem is not none else '—'), 'mem', sparks.mem) }} {{ vital("Disk /", disk_root, ('%.0f%%'|format(disk_root) if disk_root is not none else '—'), 'disk', sparks.disk) }} {{ vital("Load /core", load_per_core, ('%d%%'|format(load_per_core) if load_per_core is not none else '—'), 'load', sparks.load) }}
{% if stale %}stale{% else %}live{% endif %} {% if reg and reg.agent_version %}v{{ reg.agent_version }}{% endif %} {% if psi.cpu is not none or psi.mem is not none or psi.io is not none %} Pressure 10s cpu {{ '%.0f%%'|format(psi.cpu) if psi.cpu is not none else '—' }} · mem {{ '%.0f%%'|format(psi.mem) if psi.mem is not none else '—' }} · io {{ '%.0f%%'|format(psi.io) if psi.io is not none else '—' }} {% endif %} {% if reg and reg.last_seen_at %}seen {{ reg.last_seen_at.strftime("%H:%M:%S") }} UTC{% endif %}
{% endif %}