feat(go): expose gateway frame duration histogram
This commit is contained in:
@@ -406,6 +406,18 @@ vehicle_async_sink_queue_depth{sink}
|
||||
|
||||
这些指标是进入带帧率压测前的关键保护栏:如果 `queue_depth` 持续增长或 `enqueue_total{status="timeout"}` 增长,说明入口 publish 队列已成为瓶颈。
|
||||
|
||||
### Gateway frame duration histogram
|
||||
|
||||
2026-07-03 已为 Gateway 帧处理耗时增加 histogram:
|
||||
|
||||
```text
|
||||
vehicle_gateway_frame_duration_ms_histogram_bucket{protocol,status,le}
|
||||
vehicle_gateway_frame_duration_ms_histogram_count{protocol,status}
|
||||
vehicle_gateway_frame_duration_ms_histogram_sum{protocol,status}
|
||||
```
|
||||
|
||||
该耗时覆盖单帧从解析、identity resolve、parsed fields 生成、publish enqueue 到协议响应写入的整体入口处理路径。带帧率压测时用它按协议观察 p95/p99,不能只看 `vehicle_gateway_frame_duration_ms` 最后一条 gauge。
|
||||
|
||||
### History writer TDengine 批写
|
||||
|
||||
2026-07-03 已实现 history-writer 第一阶段批写:
|
||||
|
||||
Reference in New Issue
Block a user