feat(go): expose gateway connection close metrics

This commit is contained in:
lingniu
2026-07-03 19:28:06 +08:00
parent d08bf17111
commit 06866b0fa7
6 changed files with 56 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ systemd gateway 已配置 `LimitNOFILE=1048576`,需要持续保持。
| 层 | 指标 | 目标 |
| --- | --- | --- |
| Gateway | `vehicle_gateway_active_connections` | 能稳定到阶段目标连接数 |
| Gateway | `vehicle_gateway_connection_closes_total{reason}` | `read_error/extract_error/max_connections` 不异常增长 |
| Gateway | `vehicle_gateway_connection_rejections_total` | 容量目标内不增长 |
| Gateway async sink | `vehicle_async_sink_queue_depth{sink}` | 队列深度不持续增长 |
| Gateway async sink | `vehicle_async_sink_enqueue_total{sink,kind,status}` | `timeout/closed` 不增长 |