Repository navigation
feat: 服务流量监控与 Agent 操作文件历史 - #8
Merged
Merged
Conversation
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.
后台增加超级管理员专用的服务监控,展示请求量、近一分钟请求、耗时、服务错误及近一小时趋势,并按入口和接口模板查看明细。统计覆盖 Agent、OP、授权申请、群回调、资源网页和后台请求;不保存原始 URL、查询参数、凭据或请求正文,聚合内存有固定上限,重启后重新计数。
Agent 命令及用途修改另存为每 bot 的私有
agent-operations.jsonl,保留用户、Agent、用途、请求资源/卡号、机器人回复和派发后的本人资源观察。历史按大小轮转,不新增历史数据库表,也不进入管理员审计。HTTP 200 仍只表示派发;日志失败不会回滚或重放资源操作。现有实时用途表和访问汇总保持原用法。同时修正资源流程的边界:空闲但仍有预约的资源显示“待领取”,不计为空闲;非 ASCII 查看码统一返回无权限,不触发比较异常。预约轮到用户时保留原预约标识,避免通知更新时间造成用途丢失;无备注领取继续继承原任务。个人、OP 和管理凭据的权限边界保持不变。
验证:
设计与统计口径:service-observability.md。
Closes #7