Skip to content

feat(admin): add NewAPI monitor endpoints and frontend docs#266

Closed
silk2onion wants to merge 3 commits intolioensky:mainfrom
silk2onion:feat/newapi-monitor
Closed

feat(admin): add NewAPI monitor endpoints and frontend docs#266
silk2onion wants to merge 3 commits intolioensky:mainfrom
silk2onion:feat/newapi-monitor

Conversation

@silk2onion
Copy link
Copy Markdown
Contributor

本 PR 为 VCP 管理面板新增 NewAPI 用量监控能力,供前端页面直接接入。

变更内容

  • 新增 NewAPI 监控管理接口:
    • /admin_api/newapi-monitor/summary
    • /admin_api/newapi-monitor/trend
    • /admin_api/newapi-monitor/models
  • 支持通过 session cookie 或管理员用户名密码访问上游 NewAPI
  • 支持部分实例要求的 New-Api-User 请求头
  • 新增中文前端接入与配置说明文档
  • 补充 config.env.example 中所需配置项

本次纳入文件

  • routes/admin/newapiMonitor.js
  • routes/adminPanelRoutes.js
  • config.env.example
  • NEWAPI_MONITOR_前端接入与配置说明.md

设计原则

  • 仅实现当前前端明确需要的统计能力
  • 不预埋未使用接口
  • 不包含端点级路径统计、WebSocket、排行类等扩展功能

@silk2onion silk2onion force-pushed the feat/newapi-monitor branch from bb2a11c to 19818ba Compare March 29, 2026 01:35
@silk2onion silk2onion closed this by deleting the head repository Mar 29, 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