diff --git a/plugins/host_agent/routes.py b/plugins/host_agent/routes.py index 76ed6ce..03be356 100644 --- a/plugins/host_agent/routes.py +++ b/plugins/host_agent/routes.py @@ -690,7 +690,7 @@ async def host_vitals(host_id: str): # At-a-glance disk = the root filesystem (what people actually care about), # not the "worst" mount which is opaque. Worst stays on the full-metrics page. disk_root = (latest.get(host.name + ":/", {}) or {}).get("disk_used_pct") - sparks = {k: sparkline_svg(v) for k, v in series_raw.items()} + sparks = {k: sparkline_svg(v, height=24, fill_width=True) for k, v in series_raw.items()} # Normalize load by core count so it's comparable across hardware (load/core # as %). Cores derived from the per-core CPU sub-resources already collected. cores = sum(1 for k in latest if k.startswith(host.name + ":core")) diff --git a/plugins/host_agent/templates/_host_vitals.html b/plugins/host_agent/templates/_host_vitals.html index 930fa36..0025a71 100644 --- a/plugins/host_agent/templates/_host_vitals.html +++ b/plugins/host_agent/templates/_host_vitals.html @@ -18,7 +18,7 @@ {%- if reg.agent_version %}{{ " · " if not stale }}agent v{{ reg.agent_version }}{% endif -%} -
Bulk agent operations across your inventory. For a single host, use its host page: provisioning, a manual install command and - metrics live there. New hosts are added with Add host. + metrics live there. New hosts are added with Add host.
{% if new_token %} @@ -54,7 +54,7 @@ {% else %} -{{ error }}
{% endif %} -No hosts yet. Summon one to the table.
+No hosts yet.{% if can_add %} Summon one to the table.{% endif %}