Merged
Conversation
- Backend: Node.js + Express + Socket.IO + better-sqlite3 - server.js: HTTP/WebSocket server, real-time metrics broadcast - database.js: SQLite schema, 8 model seeds, P95 latency queries - routes/api.js: REST API for models, metrics, history, alerts - services/simulator.js: Per-model realistic request simulation - services/alertManager.js: Error rate / latency / spike alerts - Frontend: Single-page Grafana-style dark dashboard - Chart.js line/doughnut/bar charts with real-time updates - 8 model cards with sparklines and health indicators - Live request log table and alert panel - Socket.IO WebSocket real-time data binding - Infrastructure: Dockerfile + docker-compose.yml - Docs: Chinese README and project-plan.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: LLibra1 <195303685+LLibra1@users.noreply.github.com>
Agent-Logs-Url: https://github.com/LLibra1/Watch-System/sessions/28e34e43-2d8e-4fc8-961b-126c83bb63d2 Co-authored-by: LLibra1 <195303685+LLibra1@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement webpage monitoring system for open source models
从0到1实现 AI 模型实时监控系统 (Watch-System)
Apr 23, 2026
Copilot stopped work on behalf of
LLibra1 due to an error
April 23, 2026 08:02
Copilot stopped work on behalf of
LLibra1 due to an error
April 23, 2026 08:04
LLibra1
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
从空仓库完整实现一套实时 Web 监控平台,可视化追踪 8 个主流开源 AI 模型(LLaMA2、Mistral、CodeLlama、Phi-2、Gemma、Qwen、DeepSeek)的调用状态与性能指标。
后端 (
backend/)better-sqlite3):requests/models双表,支持 P95 延迟查询MIN_REQUEST_DELAY_MS–MAX_REQUEST_DELAY_MS随机触发GET /api/models·/api/metrics[/:model]·/api/history/:model·/api/alerts·POST /api/simulaterequest_completed(即时)、metrics_update(每 5s 全量)、alert_created/resolved前端 (
frontend/)BACKENDURL 动态推断(window.location),不再硬编码localhost:3001,适配任意部署环境frontend/lib/本地捆绑 Chart.js 和 Socket.IO 客户端,消除 CDN 依赖安全
CORS 改为环境感知配置:生产模式直接禁用(同源),开发模式仅允许
localhost显式来源,移除通配符*。文档
README.md:架构 ASCII 图、功能表、API 参考、Socket.IO 事件表、模型特性对比、启动方式docs/project-plan.md:项目背景、系统设计、数据流、开发里程碑docker-compose.yml+backend/Dockerfile:一键容器化部署Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.jsdelivr.net/usr/bin/curl curl -sL REDACTED -o /home/REDACTED/work/Watch-System/Watch-System/frontend/lib/chart.min.js uild --release --global rgo/bin/git committer.email(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt