AMR · PRODUCTION · READ-ONLY ANALYSIS

Link 成功率与失败原因:6 小时时间线

2026-10-16 10:10–16:10 · 北京时间 · 成功率 1 分钟 / 归因 5 分钟 · 只包含 amr-link 工作负载
两条证据链,分别计数。成功率曲线使用原监控公式(HTTP 2xx/3xx ÷ 全部);下方原因柱使用请求完成日志与终态错误日志关联后的实际计数。排除明确鉴权前拦截和 shadow;未识别原因保留为“原因不明”(含 101 条无可关联终态详情,无法进一步确认阶段)。Prometheus increase 会外推,且动态计数器可能漏掉首个采样前增量,因此柱与监控失败估算值不强制相等。无可匹配非成功完成日志的终态错误另列,不强行认定 HTTP 200。

全部接口总体分析

总体成功率按各接口请求量加权:汇总 2xx/3xx 请求量 ÷ 汇总全部请求量,不平均各接口百分比。范围为下表六个接口;业务拦截仍保留在原监控失败口径中,其他失败不等同已确认服务故障。

原监控成功率 · HTTP 2xx/3xx ÷ 全部 · 1 分钟 rate
关联 HTTP 失败日志 · 按原因堆叠(每根柱为前 5 分钟)
悬停同一时间列,可同时查看成功率、HTTP 状态码分布和原因贡献。统计窗口不随页面打开时间改变。

当前接口:原因贡献

所有接口:原因贡献矩阵

原曲线之外:HTTP 拦截/其他路由

当前接口中,明确鉴权前拦截等未计入上方原因柱。不会加进原成功率分母。

另列:终态错误与 shadow

“未关联完成日志”可能包含 HTTP 200 后流式失败,也可能有日志关联缺口。shadow 不影响正式 HTTP 成功率。
复核数据:同目录 原因贡献 CSV、逐条脱敏 HTTP 失败、聚合证据 JSON。原 Grafana 同时间窗口。

分类说明与原始错误对照

责任标签:余额不足、会员权益/并发限制、上下文超限按明确业务错误标记“非服务故障”。这是基于当前日志的业务归类;若后续发现余额、权益误判或网关转换导致上下文膨胀,需要重新归因。其他分类留空,空白表示责任尚未确认。会员限额检查/回滚异常不属于正常业务拦截。

点击贡献表中的原因名称可跳到对应说明。以下为同一 6 小时窗口的原始日志字段摘录,已脱敏;展示代表性样例,不是完整错误清单。code 是日志错误码(部分为数字字符串),type 是错误类型,均不等同 HTTP 完成状态。没有字段时标记未记录,不补造错误码。规则按具体原因优先匹配,每次失败只计入一类。

本次复核将 2 条有明确参数错误信息的记录从“原因不明”调整到“参数/消息格式不兼容”,总失败数仍为 23,896;原监控曲线保持一致。

余额不足 非服务故障 17741 次

钱包余额检查拒绝请求。由 insufficient_balance 判断,不代表模型供应商不可用。

涉及接口:/v1/responses / /v1/chat/completions / /v1/messages

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
40217,741/v1/chat/completions × 15358;/v1/responses × 2362;/v1/messages × 21
codeinsufficient_balance
type(未记录)
messageinsufficient wallet balance
detail(未记录)

不支持的工具类型 1187 次

请求携带当前转换路由不支持的 Responses 工具,如 web_search、tool_search。优先于通用参数错误归类。

涉及接口:/v1/responses / /v1/messages

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
4001,187/v1/responses × 1177;/v1/messages × 10
codeunsupported_tool
typeinvalid_request_error
messageunsupported Responses tool type "web_search" at tools[0] on Chat route
detail(未记录)
codeunsupported_tool
typeinvalid_request_error
messageunsupported Responses tool type "web_search" at tools[12] on Chat route
detail(未记录)
codeunsupported_tool
typeinvalid_request_error
messageunsupported Responses tool type "web_search" at tools[14] on Chat route
detail(未记录)

客户端/上下文取消 1043 次

原始错误含 context canceled、cancelled by caller,或错误对象状态为 499 / code 为 client_closed_request。只能确认上下文取消,不能仅凭日志断定是用户主动取消;普通 HTTP 完成状态 499 本身不用于推断。

涉及接口:/v1/chat/completions / /v1/responses / /v1/messages

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
4991,041/v1/chat/completions × 771;/v1/responses × 242;/v1/messages × 28
5001/v1/chat/completions × 1
5031/v1/chat/completions × 1
code(未记录)
typerequest_cancelled
messagerequest cancelled waiting for provider response: context canceled
detail(未记录)
code(未记录)
typerequest_cancelled
messagerequest cancelled while waiting for stream response: context canceled
detail(未记录)
code(未记录)
typerequest_cancelled
messagerequest cancelled while waiting for queue space: context canceled
detail(未记录)

模型不存在/路由不支持 1026 次

model_not_found:模型标识不存在,或模型没有该接口类型的启用路由。包括 embeddings 请求发给仅支持其他类型的模型。

涉及接口:/v1/embeddings / /v1/chat/completions / /v1/messages / /v1/responses / /v1/images/generations

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
4041,026/v1/chat/completions × 504;/v1/embeddings × 399;/v1/messages × 73;/v1/responses × 48;/v1/images/generations × 2
codemodel_not_found
type(未记录)
messagemodel "deepseek-v4.1-flash" has no active routes for request kind "embeddings"
detail(未记录)
codemodel_not_found
type(未记录)
messagemodel "classifier" not found
detail(未记录)
codemodel_not_found
type(未记录)
messagemodel "claude-haiku-5-5" not found
detail(未记录)

参数/消息格式不兼容 1020 次

请求结构、消息序列、reasoning 参数等与目标接口不兼容。先排除工具不支持、上下文超限等具体分类;只有明确错误文本才归入此类,笼统 Param Incorrect 留在原因不明。

涉及接口:/v1/chat/completions / /v1/messages / /v1/responses

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
400709/v1/chat/completions × 437;/v1/responses × 219;/v1/messages × 53
422311/v1/responses × 281;/v1/messages × 22;/v1/chat/completions × 8
codeinvalid_request_error
typeinvalid_request_error
messageAn assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message) (request_id: <ID>)
detail(未记录)
code400
type(未记录)
messageReasoning is mandatory for this endpoint and cannot be disabled.
detail(未记录)
codeinvalid_request_error
typeinvalid_request_error
messageFailed to deserialize the JSON body into the target type: messages[345]: missing field `role` at line 1 column 93456 (request_id: <ID>)
detail(未记录)

会员限额检查/回滚异常 1004 次

会员限额检查或 RPM 预留回滚操作报错。按具体 message 归类,不能因 internal_error 推断具体底层故障;995 次检查失败、9 次回滚失败。

涉及接口:/v1/chat/completions / /v1/responses / /v1/messages

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
5001,004/v1/chat/completions × 788;/v1/responses × 139;/v1/messages × 77
codeinternal_error
type(未记录)
messagefailed to evaluate membership limits
detailrecord membership rpm counter: dial tcp 172.20.103.185:6379: connect: connection refused
codeinternal_error
type(未记录)
messagefailed to evaluate membership limits
detailrecord membership rpm counter: dial tcp 172.20.103.185:6379: i/o timeout
codeinternal_error
type(未记录)
messagefailed to roll back membership rpm reservation
detail(未记录)

会员权益/并发限制 非服务故障 445 次

会员等级无使用权益,或触发会员并发等用量限制(tier_*)。与检查流程自身失败分开。

涉及接口:/v1/messages / /v1/chat/completions / /v1/responses / /v1/images/generations

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
400273/v1/chat/completions × 230;/v1/responses × 39;/v1/messages × 4
403172/v1/chat/completions × 90;/v1/responses × 71;/v1/messages × 10;/v1/images/generations × 1
codetier_request_kind_not_entitled
type(未记录)
messagemembership tier "go" is not entitled to use this model for responses: go 用户默认禁用全部模型(兜底规则)
detail(未记录)
codetier_request_kind_not_entitled
type(未记录)
messagemembership tier "go" is not entitled to use this model for chat_completions: go 用户默认禁用全部模型(兜底规则)
detail(未记录)
codetier_limit_exceeded
type(未记录)
messagemembership concurrency limit exceeded: 11/10 resets 2026-10-16T03:57:00Z
detail(未记录)

原因不明 144 次

本次主统计为 144 次:101 次无可关联终态详情,43 次虽有关联详情但只有笼统错误或不足以确定底层原因。包括 Provider returned error、Param Incorrect、Internal Server Error 及无法核实限额适用性的错误。未知不是无错误,也不等同模型供应商故障。

涉及接口:/v1/messages / /v1/responses / /v1/chat/completions

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
40068/v1/messages × 36;/v1/chat/completions × 17;/v1/responses × 15
4044/v1/chat/completions × 4
42228/v1/messages × 28
49923/v1/messages × 23
5001/v1/responses × 1
50217/v1/messages × 16;/v1/chat/completions × 1
5033/v1/chat/completions × 3
code400
type(未记录)
messageProvider returned error
detail(未记录)
code400
type(未记录)
messageParam Incorrect
detail(未记录)
code404
type(未记录)
messageProvider returned error
detail(未记录)

上下文超限 非服务故障 99 次

错误文本明确指向最大上下文长度、输入长度或 context window 超限。优先于通用 invalid_request_error 分类。

涉及接口:/v1/chat/completions

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
40099/v1/chat/completions × 99
codeinvalid_request_error
typeinvalid_request_error
messageThis model's maximum context length is 1048576 tokens. However, you requested 1268062 tokens (1268062 in the messages, 0 in the completion). Please reduce the length of the messages or completion. (request_id: <ID>)
detail(未记录)
codeinvalid_request_error
typeinvalid_request_error
messageThis model's maximum context length is 1048576 tokens. However, you requested 1268159 tokens (1268159 in the messages, 0 in the completion). Please reduce the length of the messages or completion. (request_id: <ID>)
detail(未记录)
codeinvalid_request_error
typeinvalid_request_error
messageThis model's maximum context length is 1048576 tokens. However, you requested 1209444 tokens (1209444 in the messages, 0 in the completion). Please reduce the length of the messages or completion. (request_id: <ID>)
detail(未记录)

Coding Plan配置不可用 73 次

明确返回 coding_plan_configuration_unavailable。只能确认 Coding Plan 配置暂不可用,不能从该消息判定配置缺失还是依赖故障。

涉及接口:/v1/responses / /v1/chat/completions / /v1/messages

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
50373/v1/chat/completions × 47;/v1/responses × 20;/v1/messages × 6
codecoding_plan_configuration_unavailable
type(未记录)
messageCoding Plan is temporarily unavailable. Please retry later.
detail(未记录)

请求/依赖超时 61 次

根据 message/detail 的 deadline exceeded 或 timed out 判断。主统计 61 次均为 fetch request economics 获取请求计费信息超时,不是已证实的模型生成超时。另列终态/shadow 使用相同超时规则,但不混入这 61 次。

涉及接口:/v1/chat/completions / /v1/messages / /v1/responses

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
50361/v1/chat/completions × 45;/v1/messages × 9;/v1/responses × 7
codemodel_limit_applicability_unavailable
type(未记录)
messageYour usage-limit applicability could not be verified. Please try again later.
detailfetch request economics: Get "<URL>": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

上游凭证全部被拒绝 39 次

type=upstream_credentials_exhausted:已配置的凭证均返回永久性单凭证错误(401/402/403)。无法仅凭聚合错误进一步区分无效凭证、额度或权限。

涉及接口:/v1/chat/completions / /v1/messages / /v1/responses

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
50239/v1/messages × 19;/v1/chat/completions × 14;/v1/responses × 6
code(未记录)
typeupstream_credentials_exhausted
messageall configured keys returned permanent per-key errors (401/402/403)
detail(未记录)

上游/网关协议异常 11 次

响应不符合预期 JSON schema,或网关序列化请求体失败;分别展示原始消息,不能统称上游服务宕机。

涉及接口:/v1/chat/completions / /v1/messages

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
50211/v1/chat/completions × 8;/v1/messages × 3
codeupstream_response_schema_mismatch
typeupstream_error
messageDeepSeek returned an incomplete response or output that does not match the requested JSON schema
detail(未记录)
code(未记录)
type(未记录)
messagefailed to marshal request body to JSON
detail(未记录)

连接/流中断 3 次

按 connection reset、error reading stream、unexpected EOF 判断。主统计 3 次均为读取入站请求体失败(detail=unexpected EOF),不能归咎上游;另列未关联完成日志的流错误属于另一统计范围。

涉及接口:/v1/chat/completions / /v1/responses

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为主统计计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
4003/v1/chat/completions × 2;/v1/responses × 1
codeinvalid_request
type(未记录)
messagefailed to read request body
detailunexpected EOF

Billing Scope解析失败 主统计外

鉴权前无法解析工作空间计费范围。主统计外单列,不加入原因贡献柱。原始 error_code=workspace_billing_scope_unavailable,当前采集字段没有更详细 message。

涉及接口:主统计外单列

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为原监控接口中的主统计外拦截计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
5033,053/v1/models × 2943;/v1/chat/completions × 92;/v1/responses × 15;/v1/messages × 2;/v1/embeddings × 1
codeworkspace_billing_scope_unavailable
type(未记录)
message(未记录)
detail(未记录)

API Key鉴权失败 主统计外

missing_api_key、invalid_api_key、forbidden_api_key 表示凭证缺失、无效或被禁止。属于明确鉴权前拦截,主统计外单列;当前采集字段没有详细 message。

涉及接口:主统计外单列

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为原监控接口中的主统计外拦截计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
4012,308/v1/models × 1758;/v1/chat/completions × 500;/v1/responses × 26;/v1/messages × 14;/v1/images/generations × 7;/v1/embeddings × 3
40385/v1/chat/completions × 71;/v1/messages × 6;/v1/models × 4;/v1/responses × 4
codemissing_api_key / invalid_api_key / forbidden_api_key
type(未记录)
message(未记录)
detail(未记录)

会员策略依赖异常 主统计外

日志事件 evaluate membership entitlement 获取会员策略失败(如超时或取消)。主统计外单列,不与会员限额检查失败合并。

涉及接口:主统计外单列

HTTP status:取 request complete.status,即网关请求完成日志记录的最终状态;不从错误 code 或供应商错误文本推测。以下为原监控接口中的主统计外拦截计数,不含 shadow 或未关联完成日志。

HTTP status失败数接口分布(次数)
5002,353/v1/models × 1193;/v1/chat/completions × 975;/v1/responses × 117;/v1/messages × 67;/v1/embeddings × 1
code(未记录)
type(未记录)
messagefetch membership policy: Get "<URL>": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
detail(未记录)
code(未记录)
type(未记录)
messagefetch membership policy: Get "<URL>": context canceled
detail(未记录)