Skip to content

feat: 新增系统监控 Dashboard 页面#7

Merged
robscc merged 1 commit intomainfrom
feat/dashboard-monitor
Mar 13, 2026
Merged

feat: 新增系统监控 Dashboard 页面#7
robscc merged 1 commit intomainfrom
feat/dashboard-monitor

Conversation

@robscc
Copy link
Owner

@robscc robscc commented Mar 13, 2026

Summary

  • 后端新增 GET /api/v1/dashboard/stats 聚合统计接口,从 sessions、memory_records、tool_call_logs、skills、cron_jobs、cron_job_executions、sub_agent_tasks 7 张表聚合 18 项指标
  • 前端新增 Dashboard 页面:渐变指标卡片(会话/消息/Tokens/工具调用/错误)、渠道分布 & 模型使用彩色条形图、工具调用 Top 10 排行榜、系统状态面板
  • 侧边栏添加"监控"导航入口(BarChart3 图标),前端路由注册 /dashboard,30 秒自动刷新 + 手动刷新按钮

Test plan

  • curl http://localhost:8099/api/v1/dashboard/stats 返回正确 JSON 聚合数据
  • 前端 /dashboard 页面正常渲染所有指标卡片和图表
  • 侧边栏"监控"图标正常显示和高亮
  • 30 秒自动刷新 + 手动刷新按钮正常工作
  • 现有 246 个后端测试全部通过

🤖 Generated with Claude Code

后端新增 GET /api/v1/dashboard/stats 聚合统计接口,前端新增酷炫
Dashboard 页面(渐变指标卡、彩色分布条、工具排行榜、系统状态面板),
侧边栏添加"监控"导航入口,30 秒自动刷新。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@robscc robscc merged commit 0f2d390 into main Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant