feat(运维监控): 重构仪表板布局和增强数据展示
主要改动: - 重构仪表板为左右布局(5:7比例) - 左侧:健康评分 + 实时信息(当前/峰值/平均 QPS/TPS) - 右侧:6个卡片展示详细指标(3列x2行) - 总请求:请求数、Token数、平均QPS/TPS、平均延迟/TTFT - SLA:百分比、异常数、进度条 - 延迟:P99/P95/P90/P50/Avg/Max(带颜色编码) - TTFT:P99/P95/P90/P50/Avg/Max(带颜色编码) - 请求错误:错误率、错误数、业务限制数 - 上游错误:错误率、错误数(排除429/529)、429/529数 - 添加延迟/TTFT颜色编码(<500ms绿色,<1s黄色,<2s橙色,≥2s红色) - 添加实时窗口选择器(1min/5min/30min/1h) - 优化时间段选择器标签("近5分钟"等) - 完善中英文i18n翻译 - 数据库:添加Redis连接池字段(redis_conn_total, redis_conn_idle)
This commit is contained in:
@@ -230,6 +230,10 @@ export interface OpsSystemMetricsSnapshot {
|
||||
db_ok?: boolean | null
|
||||
redis_ok?: boolean | null
|
||||
|
||||
// Config-derived limits (best-effort) for rendering "current vs max".
|
||||
db_max_open_conns?: number | null
|
||||
redis_pool_size?: number | null
|
||||
|
||||
redis_conn_total?: number | null
|
||||
redis_conn_idle?: number | null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user