Files
Nexus/docs/changelog/2026-06-14-watch-remove-io-metrics.md
T
Nexus Agent b5419cd2c0 feat(watch): SSH-first probe, drop IO metrics, Baota ring UI
Align live monitoring with Baota: always SSH psutil for CPU/mem/load,
remove network/disk IO rates, and show metrics as circular rings in slots.
2026-06-14 03:19:43 +08:00

1.0 KiB

2026-06-14 — 实时监测移除 IO 速率

摘要

监测槽、历史趋势、探针记录表不再采集或展示网络/磁盘 IO 速率,探针专注 CPU、内存、磁盘、负载(与宝塔对齐)。

动机

用户明确 IO 速率不需要;此前 IO 逻辑还导致 Agent 路径跳过 SSH、数据与宝塔偏差。

变更

  • SSH 探针命令去掉 net_io / disk_io 采集
  • 探针循环去掉速率差分(watch:last / bps 计算)
  • 实时推送 to_live_dict 不再含 bps 字段
  • 前端槽卡片、趋势图、探针表移除 IO 列

涉及文件

  • server/infrastructure/ssh/remote_probe.py
  • server/utils/watch_metrics.py
  • server/background/watch_probe_runner.py
  • frontend/src/components/watch/*.vue
  • frontend/src/composables/useWatchPins.ts
  • frontend/src/pages/WatchMetricsPage.vue

迁移 / 重启

需重启 API + 前端构建。DB 历史列保留,新记录 IO 字段为 NULL。

验证

pytest tests/test_watch_metrics.py tests/test_watch_pins.py -q