## 統計
每個連接管理器都有一個以`http.<stat_prefix>.`為根的統計樹。 統計如下:
| 名稱 | 類型 | 描述 |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| downstream_cx_total | Counter | 連接總數 |
| downstream_cx_ssl_total | Counter | TLS連接總數 |
| downstream_cx_http1_total | Counter | HTTP / 1.1連接總數 |
| downstream_cx_websocket_total | Counter | WebSocket連接總數 |
| downstream_cx_http2_total | Counter | HTTP / 2連接總數 |
| downstream_cx_destroy | Counter | 連接關閉總數 |
| downstream_cx_destroy_remote | Counter | 因遠端關閉而導致連接銷毀總數 |
| downstream_cx_destroy_local | Counter | 由于本地關閉導致連接被摧毀的總數 |
| downstream_cx_destroy_active_rq | Counter | 連接被1個及以上活動請求銷毀的總數 |
| downstream_cx_destroy_local_active_rq | Counter | 因1個及以上活動請求被本地銷毀的連接總數 |
| downstream_cx_destroy_remote_active_rq | Counter | 因1個及以上活動請求被遠端關閉而銷毀的連接總數 |
| downstream_cx_active | Gauge | 活動的連接總數 |
| downstream_cx_ssl_active | Gauge | 活動TLS連接總數 |
| downstream_cx_http1_active | Gauge | 有效的HTTP / 1.1連接總數 |
| downstream_cx_websocket_active | Gauge | 有效的WebSocket連接總數 |
| downstream_cx_http2_active | Gauge | 有效的HTTP / 2連接總數 |
| downstream_cx_protocol_error | Counter | 協議錯誤的總數 |
| downstream_cx_length_ms | Histogram | 連接長度毫秒 |
| downstream_cx_rx_bytes_total | Counter | 接收的字節總數 |
| downstream_cx_rx_bytes_buffered | Gauge | 當前緩沖接收到的字節總數 |
| downstream_cx_tx_bytes_total | Counter | 發送的字節總數 |
| downstream_cx_tx_bytes_buffered | Gauge | 當前緩沖的發送字節總數 |
| downstream_cx_drain_close | Counter | 由逐出而造成總連接關閉總數 |
| downstream_cx_idle_timeout | Counter | 由于空閑超時而關閉的連接總數 |
| downstream_flow_control_paused_reading_total | Counter | 由于流量控制而被禁用的總讀取次數 |
| downstream_flow_control_resumed_reading_total | Counter | 由于流量控制,在連接上啟用的總讀取次數 |
| downstream_rq_total | Counter | 總請求數 |
| downstream_rq_http1_total | Counter | 總HTTP / 1.1請求數 |
| downstream_rq_http2_total | Counter | 總HTTP / 2請求數 |
| downstream_rq_active | Gauge | 總活動請求 |
| downstream_rq_response_before_rq_complete | Counter | 在請求完成之前發送的響應總數 |
| downstream_rq_rx_reset | Counter | 收到的請求重置總數 |
| downstream_rq_tx_reset | Counter | 已發送請求重置總數 |
| downstream_rq_non_relative_path | Counter | 使用非相對HTTP路徑的請求總數 |
| downstream_rq_too_large | Counter | 由于緩沖過大的Body而導致413請求總數 |
| downstream_rq_2xx | Counter | 回應2xx總數 |
| downstream_rq_3xx | Counter | 回應3xx總數 |
| downstream_rq_4xx | Counter | 回應4xx總數 |
| downstream_rq_5xx | Counter | 回應5xx總數 |
| downstream_rq_ws_on_non_ws_route | Counter | 因WebSocket升級而被拒絕的非WebSocket路由請求總數 |
| downstream_rq_time | Histogram | 請求時間,單位毫秒 |
| rs_too_large | Counter | 由于緩沖過大的Body而導致的響應錯誤總數 |
### 按代理客戶統計
每個用戶代理統計信息都以 ` http.<stat_prefix>.user_agent.<user_agent>.`為根。目前,Envoy與iOS(ios)和Android(android)的用戶代理相匹配,并產生以下統計數據:
| 名稱 | 類型 | 描述 |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| downstream_cx_total | Counter | 連接總數 |
| downstream_cx_destroy_remote_active_rq | Counter | 因1個及以上活動請求被遠端關閉的連接總數 |
| downstream_rq_total | Counter | 請求總數 |
### 按監聽端口統計
每個監聽器統計信息的附加值均以`listener.<address>.http.<stat_prefix>.`為根。統計如下:
| 名稱 | 類型 | 描述 |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| downstream_rq_2xx | Counter | 回應2xx總數 |
| downstream_rq_3xx | Counter | 回應3xx總數 |
| downstream_rq_4xx | Counter | 回應4xx總數 |
| downstream_rq_5xx | Counter | 回應5xx總數 |
## 返回
- [上一級](../HTTPconnectionmanager.md)
- [首頁目錄](../../README.md)
- 首頁
- 簡介
- Envoy是什么
- 架構介紹
- 術語
- 線程模型
- 監聽器
- L3/L4網絡過濾器
- HTTP連接管理
- HTTP過濾器
- HTTP路由
- gRPC
- WebSocket支持
- 集群管理
- 服務發現
- 健康檢查
- 連接池
- 負載均衡
- 異常檢測
- 熔斷
- 全局限速
- TLS
- 統計
- 運行時配置
- 跟蹤
- TCP代理
- 訪問日志
- MongoDB
- DynamoDB
- Redis
- 熱重啟
- 動態配置
- 初始化
- 逐出
- 腳本
- 部署
- 業界對比
- 獲得幫助
- 歷史版本
- 編譯安裝
- 編譯
- 參考配置
- 演示沙箱
- 前端代理
- Zipkin跟蹤
- Jaeger跟蹤
- gRPC橋接
- 構建Envoy Docker鏡像
- 工具
- 配置參考
- V1 API 概述
- V2 API 概述
- 監聽器
- 網絡過濾器
- TLS客戶端身份認證
- Echo
- Mongo代理
- 速率限制
- Redis代理
- TCP代理
- HTTP連接管理器
- 路由匹配
- 流量轉移/分流
- HTTP頭部操作
- HTTP頭部清理
- 統計
- 運行時設置
- 路由發現服務
- HTTP過濾器
- 緩存
- CORS過濾器
- 故障注入
- DynamoDB
- gRPC HTTP/1.1 橋接
- gRPC-JSON 轉碼過濾器
- gRPC-Web 過濾器
- 健康檢查
- 速率限制
- 路由
- Lua
- 集群管理
- 統計
- 運行時設置
- 集群發現服務
- 健康檢查
- 熔斷
- 訪問日志
- 限速服務
- 運行時配置
- 路由表檢查工具
- 運維管理
- 命令行選項
- 熱重啟
- 管理接口
- 統計概述
- 運行時配置
- 文件系統
- 自定義擴展示例
- V1 API參考
- 監聽器
- 網絡過濾器
- TLS客戶端身份認證
- Echo
- HTTP連接管理
- Mongo代理
- 速率限制
- Redis代理
- TCP代理
- HTTP路由配置
- 虛擬主機
- 路由
- 虛擬集群
- 速率限制配置
- 路由發現服務
- HTTP過濾器
- 緩存
- CORS過濾器
- DynamoDB
- 故障注入
- gRPC HTTP/1.1 橋接
- gRPC-JSON 轉碼過濾器
- gRPC-Web 過濾器
- 健康檢查
- Lua
- 速率限制
- 路由
- 集群管理
- 集群
- 健康檢查
- 熔斷
- TLS上下文
- 異常值檢測
- HASH環負載均衡配置
- 異常檢測
- 集群發現服務
- 服務發現服務
- 訪問日志
- 管理接口
- 限速服務
- 運行時配置
- 跟蹤
- V2 API參考
- 啟動引導
- 監聽&監聽發現
- 集群&集群發現
- 服務發現
- 健康檢查
- HTTP路由管理&發現
- TLS配置
- 通用的類型
- 網絡地址
- 協議選項
- 發現API
- 限速組件
- 過濾器
- 網絡過濾器
- TLS客戶端身份認證
- HTTP連接管理
- Mongo代理
- 速率限制
- Redis代理
- TCP代理
- HTTP過濾器
- 緩存
- 故障注入
- 健康檢查
- Lua
- 速率限制
- 路由
- gRPC-JSON轉碼器
- 常見訪問日志類型
- 常見故障注入類型
- FAQ
- Envoy有多快?
- 我在哪里獲得二進制文件?
- 我如何設置SNI?
- 如何設置區域感知路由?
- 我如何設置Zipkin跟蹤?