.. _config_network_filters_tcp_proxy: TCP proxy ========= * TCP proxy :ref:`architecture overview ` * :ref:`v2 API reference ` * This filter should be configured with the name *envoy.tcp_proxy*. .. _config_network_filters_tcp_proxy_dynamic_cluster: Dynamic cluster selection ------------------------- The upstream cluster used by the TCP proxy filter can be dynamically set by other network filters on a per-connection basis by setting a per-connection state object under the key `envoy.tcp_proxy.cluster`. See the implementation for the details. .. _config_network_filters_tcp_proxy_stats: Statistics ---------- The TCP proxy filter emits both its own downstream statistics as well as many of the :ref:`cluster upstream statistics ` where applicable. The downstream statistics are rooted at *tcp..* with the following statistics: .. csv-table:: :header: Name, Type, Description :widths: 1, 1, 2 downstream_cx_total, Counter, Total number of connections handled by the filter downstream_cx_no_route, Counter, Number of connections for which no matching route was found or the cluster for the route was not found downstream_cx_tx_bytes_total, Counter, Total bytes written to the downstream connection downstream_cx_tx_bytes_buffered, Gauge, Total bytes currently buffered to the downstream connection downstream_cx_rx_bytes_total, Counter, Total bytes read from the downstream connection downstream_cx_rx_bytes_buffered, Gauge, Total bytes currently buffered from the downstream connection downstream_flow_control_paused_reading_total, Counter, Total number of times flow control paused reading from downstream downstream_flow_control_resumed_reading_total, Counter, Total number of times flow control resumed reading from downstream idle_timeout, Counter, Total number of connections closed due to idle timeout upstream_flush_total, Counter, Total number of connections that continued to flush upstream data after the downstream connection was closed upstream_flush_active, Gauge, Total connections currently continuing to flush upstream data after the downstream connection was closed