Last active
October 7, 2021 17:54
-
-
Save warroyo/c818cfd02c13e606ca42dceefc84ba25 to your computer and use it in GitHub Desktop.
stats-filter for TSM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: EnvoyFilter | |
| metadata: | |
| name: stats-filter-1.7 | |
| namespace: istio-system | |
| labels: | |
| istio.io/rev: default | |
| spec: | |
| configPatches: | |
| - applyTo: HTTP_FILTER | |
| match: | |
| context: SIDECAR_OUTBOUND | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: | |
| filterChain: | |
| filter: | |
| name: "envoy.http_connection_manager" | |
| subFilter: | |
| name: "envoy.router" | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.stats | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm | |
| value: | |
| config: | |
| root_id: stats_outbound | |
| configuration: | |
| "@type": "type.googleapis.com/google.protobuf.StringValue" | |
| value: | | |
| { | |
| "debug": "false", | |
| "stat_prefix": "istio" | |
| } | |
| vm_config: | |
| vm_id: stats_outbound | |
| runtime: envoy.wasm.runtime.null | |
| code: | |
| local: | |
| inline_string: envoy.wasm.stats | |
| - applyTo: HTTP_FILTER | |
| match: | |
| context: SIDECAR_INBOUND | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: | |
| filterChain: | |
| filter: | |
| name: "envoy.http_connection_manager" | |
| subFilter: | |
| name: "envoy.router" | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.stats | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm | |
| value: | |
| config: | |
| root_id: stats_inbound | |
| configuration: | |
| "@type": "type.googleapis.com/google.protobuf.StringValue" | |
| value: | | |
| { | |
| "debug": "false", | |
| "stat_prefix": "istio" | |
| } | |
| vm_config: | |
| vm_id: stats_inbound | |
| runtime: envoy.wasm.runtime.null | |
| code: | |
| local: | |
| inline_string: envoy.wasm.stats | |
| - applyTo: HTTP_FILTER | |
| match: | |
| context: GATEWAY | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: | |
| filterChain: | |
| filter: | |
| name: "envoy.http_connection_manager" | |
| subFilter: | |
| name: "envoy.router" | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.stats | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm | |
| value: | |
| config: | |
| root_id: stats_outbound | |
| configuration: | |
| "@type": "type.googleapis.com/google.protobuf.StringValue" | |
| value: | | |
| { | |
| "debug": "false", | |
| "stat_prefix": "istio", | |
| "disable_host_header_fallback": true | |
| } | |
| vm_config: | |
| vm_id: stats_outbound | |
| runtime: envoy.wasm.runtime.null | |
| code: | |
| local: | |
| inline_string: envoy.wasm.stats | |
| --- | |
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: EnvoyFilter | |
| metadata: | |
| name: tcp-metadata-exchange-1.7 | |
| namespace: istio-system | |
| labels: | |
| istio.io/rev: default | |
| spec: | |
| configPatches: | |
| - applyTo: NETWORK_FILTER | |
| match: | |
| context: SIDECAR_INBOUND | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: {} | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.metadata_exchange | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.tcp.metadataexchange.config.MetadataExchange | |
| value: | |
| protocol: istio-peer-exchange | |
| - applyTo: CLUSTER | |
| match: | |
| context: SIDECAR_OUTBOUND | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| cluster: {} | |
| patch: | |
| operation: MERGE | |
| value: | |
| filters: | |
| - name: istio.metadata_exchange | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.tcp.metadataexchange.config.MetadataExchange | |
| value: | |
| protocol: istio-peer-exchange | |
| - applyTo: CLUSTER | |
| match: | |
| context: GATEWAY | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| cluster: {} | |
| patch: | |
| operation: MERGE | |
| value: | |
| filters: | |
| - name: istio.metadata_exchange | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.tcp.metadataexchange.config.MetadataExchange | |
| value: | |
| protocol: istio-peer-exchange | |
| --- | |
| --- | |
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: EnvoyFilter | |
| metadata: | |
| name: tcp-stats-filter-1.7 | |
| namespace: istio-system | |
| labels: | |
| istio.io/rev: default | |
| spec: | |
| configPatches: | |
| - applyTo: NETWORK_FILTER | |
| match: | |
| context: SIDECAR_INBOUND | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: | |
| filterChain: | |
| filter: | |
| name: "envoy.tcp_proxy" | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.stats | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.extensions.filters.network.wasm.v3.Wasm | |
| value: | |
| config: | |
| root_id: stats_inbound | |
| configuration: | |
| "@type": "type.googleapis.com/google.protobuf.StringValue" | |
| value: | | |
| { | |
| "debug": "false", | |
| "stat_prefix": "istio" | |
| } | |
| vm_config: | |
| vm_id: tcp_stats_inbound | |
| runtime: envoy.wasm.runtime.null | |
| code: | |
| local: | |
| inline_string: "envoy.wasm.stats" | |
| - applyTo: NETWORK_FILTER | |
| match: | |
| context: SIDECAR_OUTBOUND | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: | |
| filterChain: | |
| filter: | |
| name: "envoy.tcp_proxy" | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.stats | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.extensions.filters.network.wasm.v3.Wasm | |
| value: | |
| config: | |
| root_id: stats_outbound | |
| configuration: | |
| "@type": "type.googleapis.com/google.protobuf.StringValue" | |
| value: | | |
| { | |
| "debug": "false", | |
| "stat_prefix": "istio" | |
| } | |
| vm_config: | |
| vm_id: tcp_stats_outbound | |
| runtime: envoy.wasm.runtime.null | |
| code: | |
| local: | |
| inline_string: "envoy.wasm.stats" | |
| - applyTo: NETWORK_FILTER | |
| match: | |
| context: GATEWAY | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: | |
| filterChain: | |
| filter: | |
| name: "envoy.tcp_proxy" | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.stats | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.extensions.filters.network.wasm.v3.Wasm | |
| value: | |
| config: | |
| root_id: stats_outbound | |
| configuration: | |
| "@type": "type.googleapis.com/google.protobuf.StringValue" | |
| value: | | |
| { | |
| "debug": "false", | |
| "stat_prefix": "istio" | |
| } | |
| vm_config: | |
| vm_id: tcp_stats_outbound | |
| runtime: envoy.wasm.runtime.null | |
| code: | |
| local: | |
| inline_string: "envoy.wasm.stats" | |
| --- | |
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: EnvoyFilter | |
| metadata: | |
| name: metadata-exchange-1.7 | |
| namespace: istio-system | |
| labels: | |
| istio.io/rev: default | |
| spec: | |
| configPatches: | |
| - applyTo: HTTP_FILTER | |
| match: | |
| context: SIDECAR_INBOUND | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: | |
| filterChain: | |
| filter: | |
| name: "envoy.http_connection_manager" | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.metadata_exchange | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm | |
| value: | |
| config: | |
| configuration: | |
| "@type": "type.googleapis.com/google.protobuf.StringValue" | |
| value: | | |
| {} | |
| vm_config: | |
| runtime: envoy.wasm.runtime.null | |
| code: | |
| local: | |
| inline_string: envoy.wasm.metadata_exchange | |
| - applyTo: HTTP_FILTER | |
| match: | |
| context: SIDECAR_OUTBOUND | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: | |
| filterChain: | |
| filter: | |
| name: "envoy.http_connection_manager" | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.metadata_exchange | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm | |
| value: | |
| config: | |
| configuration: | |
| "@type": "type.googleapis.com/google.protobuf.StringValue" | |
| value: | | |
| {} | |
| vm_config: | |
| runtime: envoy.wasm.runtime.null | |
| code: | |
| local: | |
| inline_string: envoy.wasm.metadata_exchange | |
| - applyTo: HTTP_FILTER | |
| match: | |
| context: GATEWAY | |
| proxy: | |
| proxyVersion: '^1\.7.*' | |
| listener: | |
| filterChain: | |
| filter: | |
| name: "envoy.http_connection_manager" | |
| patch: | |
| operation: INSERT_BEFORE | |
| value: | |
| name: istio.metadata_exchange | |
| typed_config: | |
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
| type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm | |
| value: | |
| config: | |
| configuration: | |
| "@type": "type.googleapis.com/google.protobuf.StringValue" | |
| value: | | |
| {} | |
| vm_config: | |
| runtime: envoy.wasm.runtime.null | |
| code: | |
| local: | |
| inline_string: envoy.wasm.metadata_exchange |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment