feat(monitor): show nginx telemetry in monitor cards

This commit is contained in:
zhi
2026-03-20 10:03:56 +00:00
parent a6faf5534c
commit caad6be048

View File

@@ -13,6 +13,8 @@ interface ServerRow {
disk_pct?: number | null disk_pct?: number | null
swap_pct?: number | null swap_pct?: number | null
agents: Array<{ id?: string; name?: string; status?: string }> agents: Array<{ id?: string; name?: string; status?: string }>
nginx_installed?: boolean | null
nginx_sites?: string[]
last_seen_at?: string | null last_seen_at?: string | null
} }
@@ -154,8 +156,12 @@ export default function MonitorPage() {
CPU {s.cpu_pct ?? '-'}% · MEM {s.mem_pct ?? '-'}% · DISK {s.disk_pct ?? '-'}% · SWAP {s.swap_pct ?? '-'}% CPU {s.cpu_pct ?? '-'}% · MEM {s.mem_pct ?? '-'}% · DISK {s.disk_pct ?? '-'}% · SWAP {s.swap_pct ?? '-'}%
</div> </div>
<div className="text-dim">OpenClaw: {s.openclaw_version || '-'}</div> <div className="text-dim">OpenClaw: {s.openclaw_version || '-'}</div>
<div className="text-dim">Plugin: {s.plugin_version || '-'}</div> <div className="text-dim">Client: {s.plugin_version || '-'}</div>
<div className="text-dim">Agents: {s.agents?.length || 0}</div> <div className="text-dim">Agents: {s.agents?.length || 0}</div>
<div className="text-dim">Nginx: {s.nginx_installed == null ? '-' : s.nginx_installed ? 'installed' : 'not detected'}</div>
{!!s.nginx_sites?.length && (
<div className="text-dim">Sites: {s.nginx_sites.join(', ')}</div>
)}
</div> </div>
))} ))}
</div> </div>