Statistics
Every connection manager has a statistics tree rooted at http.<stat_prefix>.
with the following
statistics:
Name |
Type |
Description |
---|---|---|
|
Counter |
Total connections |
|
Counter |
Total TLS connections |
|
Counter |
Total HTTP/1.1 connections |
|
Counter |
Total successfully upgraded connections. These are also counted as total http1/http2 connections. |
|
Counter |
Total HTTP/2 connections |
|
Counter |
Total HTTP/3 connections |
|
Counter |
Total connections destroyed |
|
Counter |
Total connections destroyed due to remote close |
|
Counter |
Total connections destroyed due to local close |
|
Counter |
Total connections destroyed with 1+ active request |
|
Counter |
Total connections destroyed locally with 1+ active request |
|
Counter |
Total connections destroyed remotely with 1+ active request |
|
Gauge |
Total active connections |
|
Gauge |
Total active TLS connections |
|
Gauge |
Total active HTTP/1.1 connections |
|
Gauge |
Total active upgraded connections. These are also counted as active http1/http2 connections. |
|
Gauge |
Total active HTTP/1.x connections waiting for another downstream request to safely close the connection. |
|
Gauge |
Total active HTTP/2 connections |
|
Gauge |
Total active HTTP/3 connections |
|
Counter |
Total protocol errors |
|
Histogram |
Connection length milliseconds |
|
Counter |
Total bytes received |
|
Gauge |
Total received bytes currently buffered |
|
Counter |
Total bytes sent |
|
Gauge |
Total sent bytes currently buffered |
|
Counter |
Total connections closed due to draining |
|
Counter |
Total connections closed due to idle timeout |
|
Counter |
Total connections closed due to max connection duration |
|
Counter |
Total connections closed due to max requests per connection |
|
Counter |
Total connections for which HTTP 1.x keepalive has been disabled due to Envoy overload |
|
Counter |
Total number of times reads were disabled due to flow control |
|
Counter |
Total number of times reads were enabled on the connection due to flow control |
|
Counter |
Total requests |
|
Counter |
Total HTTP/1.1 requests |
|
Counter |
Total HTTP/2 requests |
|
Counter |
Total HTTP/3 requests |
|
Gauge |
Total active requests |
|
Counter |
Total requests rejected because the original IP detection failed |
|
Counter |
Total responses sent before the request was complete |
|
Counter |
Total request resets received |
|
Counter |
Total request resets sent |
|
Counter |
Total requests with a non-relative HTTP path |
|
Counter |
Total requests resulting in a 413 due to buffering an overly large body |
|
Counter |
Total requests that resulted in a response (e.g. does not include aborted requests) |
|
Counter |
Total requests redirected due to different original and normalized URL paths or when path normalization failed. This action is configured by setting the path_with_escaped_slashes_action config option. |
|
Counter |
Total 1xx responses |
|
Counter |
Total 2xx responses |
|
Counter |
Total 3xx responses |
|
Counter |
Total 4xx responses |
|
Counter |
Total 5xx responses |
|
Counter |
Total upgrade requests rejected by non upgrade routes. This now applies both to WebSocket and non-WebSocket upgrades |
|
Histogram |
Total time for request and response (milliseconds) |
|
Counter |
Total requests closed due to idle timeout |
|
Counter |
Total requests closed due to max duration reached |
|
Counter |
Total requests closed due to a timeout on the request path |
|
Counter |
Total requests closed due to Envoy overload |
|
Counter |
Total requests redirected due to different original and normalized URL paths. This action is configured by setting the path_with_escaped_slashes_action config option. |
|
Counter |
Total number of connections closed due to too many premature request resets on the connection. |
|
Counter |
Total response errors due to buffering an overly large body |
Per user agent statistics
Additional per user agent statistics are rooted at http.<stat_prefix>.user_agent.<user_agent>.
Currently Envoy matches user agent for both iOS (ios
) and Android (android
) and produces
the following statistics:
Name |
Type |
Description |
---|---|---|
|
Counter |
Total connections |
|
Counter |
Total connections destroyed remotely with 1+ active requests |
|
Counter |
Total requests |
Per listener statistics
Per listener statistics are rooted at listener.<address>.
.
HTTP per listener statistics
Additional HTTP statistics are of the form http.<stat_prefix>.
with the
following statistics:
Name |
Type |
Description |
---|---|---|
|
Counter |
Total responses |
|
Counter |
Total 1xx responses |
|
Counter |
Total 2xx responses |
|
Counter |
Total 3xx responses |
|
Counter |
Total 4xx responses |
|
Counter |
Total 5xx responses |
HTTP/3 per listener statistics
HTTP/3 statistics with the form of http3.downstream.<stat_prefix>.
:
Name |
Type |
Description |
---|---|---|
|
Counter |
A collection of counters that are lazily initialized to record each quic connection close error code that’s present. |
|
Counter |
A collection of counters that that lazily initialized to record quic stream reset error codes. |
Per codec statistics
Each codec has the option of adding per-codec statistics. http1, http2, and http3 all have codec stats.
HTTP/1 codec statistics
On the downstream side all http1 statistics are rooted at http1.
On the upstream side all http1 statistics are rooted at cluster.<name>.http1.
Name |
Type |
Description |
---|---|---|
|
Counter |
Total number of dropped headers with names containing underscores. This action is configured by setting the headers_with_underscores_action config setting. |
|
Counter |
Total number of metadata dropped during HTTP/1 encoding |
|
Counter |
Total number of connections closed due to response flooding |
|
Counter |
Total numbers of rejected requests due to header names containing underscores. This action is configured by setting the headers_with_underscores_action config setting. |
HTTP/2 codec statistics
On the downstream side all http2 statistics are rooted at http2.
On the upstream side all http2 statistics are rooted at cluster.<name>.http2.
Name |
Type |
Description |
---|---|---|
|
Counter |
Total number of dropped headers with names containing underscores. This action is configured by setting the headers_with_underscores_action config setting. |
|
Counter |
Total number |
|
Counter |
Total number of connections reset due to the headers being larger than the configured value. |
|
Counter |
Total number of errors where a header callback is called without an associated stream. This tracks an unexpected occurrence due to an as yet undiagnosed bug |
|
Counter |
Total number of connections terminated for exceeding the limit on consecutive inbound frames with an empty payload and no end stream flag. The limit is configured by setting the max_consecutive_inbound_frames_with_empty_payload config setting. |
|
Counter |
Total number of connections terminated for exceeding the limit on inbound frames of type PRIORITY. The limit is configured by setting the max_inbound_priority_frames_per_stream config setting. |
|
Counter |
Total number of connections terminated for exceeding the limit on inbound frames of type WINDOW_UPDATE. The limit is configured by setting the max_inbound_window_updateframes_per_data_frame_sent config setting. |
|
Counter |
Total number of connections closed due to keepalive timeout |
|
Counter |
Total number of metadata frames that were received and contained empty maps. |
|
Gauge |
Total outbound control frames that are active. |
|
Counter |
Total number of connections terminated for exceeding the limit on outbound frames of types PING, SETTINGS and RST_STREAM. The limit is configured by setting the max_outbound_control_frames config setting. |
|
Gauge |
Total outbound frames that are active. |
|
Counter |
Total number of connections terminated for exceeding the limit on outbound frames of all types. The limit is configured by setting the max_outbound_frames config setting. |
|
Counter |
Total numbers of rejected requests due to header names containing underscores. This action is configured by setting the headers_with_underscores_action config setting. |
|
Counter |
Total number of invalid received frames that violated section 8 of the HTTP/2 spec. This will result in a |
|
Counter |
Total number of reset stream frames received by Envoy |
|
Counter |
Total number of invalid frames received by Envoy with a |
|
Counter |
Total number of trailers seen on requests coming from downstream |
|
Counter |
Total number of stream idle timeouts waiting for open stream window to flush the remainder of a stream |
|
Counter |
Total number of reset stream frames transmitted by Envoy |
|
Gauge |
Active streams as observed by the codec |
|
Gauge |
Currently buffered body data in bytes waiting to be written when stream/connection window is opened. |
|
Gauge |
Number of HTTP/2 streams where the stream has been closed but processing of the stream close has been deferred due to network backup. This is expected to be incremented when a downstream stream is backed up and the corresponding upstream stream has received end stream but we defer processing of the upstream stream close due to downstream backup. This is decremented as we finally delete the stream when either the deferred close stream has its buffered data drained or receives a reset. |
Attention
The HTTP/2 streams_active
gauge may be greater than the HTTP connection manager
downstream_rq_active
gauge due to differences in stream accounting between the codec and the
HTTP connection manager.
HTTP/3 codec statistics
On the downstream side all http3 statistics are rooted at http3.
On the upstream side all http3 statistics are rooted at cluster.<name>.http3.
Name |
Type |
Description |
---|---|---|
|
Counter |
Total number of dropped headers with names containing underscores. This action is configured by setting the headers_with_underscores_action config setting. |
requests_rejected_with_underscores_in_headers |
Counter |
Total numbers of rejected requests due to header names containing underscores. This action is configured by setting the headers_with_underscores_action config setting. |
|
Counter |
Total number of reset stream frames received by Envoy |
|
Counter |
Total number of reset stream frames transmitted by Envoy |
|
Counter |
Total number of metadata dropped during HTTP/3 encoding |
|
Counter |
Total number of quic connections that use transport version h3-29. QUIC h3-29 is unsupported by default and this counter will be removed when h3-29 support is completely removed. |
|
Counter |
Total number of quic connections that use transport version rfc-v1. |
Tracing statistics
Tracing statistics are emitted when tracing decisions are made. All tracing statistics are rooted at http.<stat_prefix>.tracing.
with the following statistics:
Name |
Type |
Description |
---|---|---|
|
Counter |
Total number of traceable decisions by random sampling |
|
Counter |
Total number of traceable decisions by server runtime flag |
|
Counter |
Total number of traceable decisions by request header |
|
Counter |
Total number of non-traceable decisions by request id |
|
Counter |
Total number of non-traceable decisions by health check |