feat(go): expose stat writer latency histogram
This commit is contained in:
@@ -435,6 +435,18 @@ vehicle_realtime_store_update_duration_ms_histogram_sum{store,protocol,status}
|
||||
|
||||
该耗时覆盖 Redis 快速实时投影和 MySQL 异步当前态/位置投影的实际写入耗时。带帧率压测时,Redis p99 上升会直接影响 realtime consumer 追平;MySQL p99 上升需要结合 `vehicle_realtime_async_queue_depth` 和 `vehicle_realtime_async_queue_total{status="dropped"}` 判断是否开始丢弃低优先级当前态写入。
|
||||
|
||||
### Stat writer write histogram
|
||||
|
||||
2026-07-03 已为 stat-writer MySQL append 增加 duration histogram:
|
||||
|
||||
```text
|
||||
vehicle_stat_write_duration_ms_histogram_bucket{topic,status,le}
|
||||
vehicle_stat_write_duration_ms_histogram_count{topic,status}
|
||||
vehicle_stat_write_duration_ms_histogram_sum{topic,status}
|
||||
```
|
||||
|
||||
该耗时覆盖单条 Kafka 消息解析后写入 `vehicle_daily_mileage` 的 MySQL append 路径。带帧率压测时,如果该 p99 持续上升并伴随 `vehicle_stat_kafka_lag` 增长,优先排查 MySQL 写入、每日里程表索引和 stat-writer 消费能力。
|
||||
|
||||
### Gateway frame duration histogram
|
||||
|
||||
2026-07-03 已为 Gateway 帧处理耗时增加 histogram:
|
||||
|
||||
Reference in New Issue
Block a user