TCP proxy

    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.

    TCP proxy can be configured to route to a subset of hosts within an upstream cluster.

    To define metadata that a suitable upstream host must match, use one of the following fields:

    1. Use to define required metadata for a single upstream cluster.

    2. Use ClusterWeight.metadata_match to define required metadata for a weighted upstream cluster.

    The TCP proxy filter emits both its own downstream statistics as well as many of the where applicable. The downstream statistics are rooted at tcp.<stat_prefix>. with the following statistics: