Files
Nexus/docs/changelog/2026-06-14-watch-baota-server-detail.md
2026-07-08 22:31:31 +08:00

26 lines
935 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-06-14 — 监测服务器详情(对齐宝塔)
## 摘要
探针新增负载进程数、分核 CPU、内存 MB 明细;进程探针分 CPU/MEM Top5;槽位「详情」抽屉按宝塔布局展示。
## 动机
用户提供的宝塔面板含 1/5/15 负载、活动/总进程、分核占用、内存分项与 CPU/MEM Top5,Nexus 原先仅圆环 + 单一进程列表。
## 变更
- `remote_probe.py`metrics 增 `process_running/total``per_cpu_pct`、内存 MB;进程返回 `top_cpu` + `top_mem`
- `watch_metrics.py``sanitize_process_bundle`、live 推送新字段
- `WatchProcessDrawer.vue`:宝塔式详情抽屉
- `watchFormat.ts``formatLoadTriple``normalizeProcessBundle`
## 验证
```bash
pytest tests/test_watch_metrics.py -q -k "not ssh_watch_metrics_cmd_runs_locally"
cd frontend && npx vite build
```
开启监测 → 点「详情」应见与宝塔同结构的负载/进程/内存/Top5。