apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: stats-filter spec: configPatches: - applyTo: HTTP_FILTER match: context: SIDECAR_OUTBOUND listener: filterChain: filter: name: "envoy.http_connection_manager" subFilter: name: "envoy.router" patch: operation: INSERT_BEFORE value: name: envoy.filters.http.wasm config: config: root_id: stats_outbound configuration: | { "debug": "false", "stat_prefix": "istio", } vm_config: vm_id: stats_outbound runtime: envoy.wasm.runtime.null code: inline_string: envoy.wasm.stats - applyTo: HTTP_FILTER match: context: SIDECAR_INBOUND listener: filterChain: filter: name: "envoy.http_connection_manager" subFilter: name: "envoy.router" patch: operation: INSERT_BEFORE value: name: envoy.filters.http.wasm config: config: root_id: stats_inbound configuration: | { "debug": "false", "stat_prefix": "istio", } vm_config: vm_id: stats_inbound runtime: envoy.wasm.runtime.null code: inline_string: envoy.wasm.stats - applyTo: HTTP_FILTER match: context: GATEWAY listener: filterChain: filter: name: "envoy.http_connection_manager" subFilter: name: "envoy.router" patch: operation: INSERT_BEFORE value: name: envoy.filters.http.wasm config: config: root_id: stats_outbound configuration: | { "debug": "false", "stat_prefix": "istio", "disable_host_header_fallback": "true", } vm_config: vm_id: stats_outbound runtime: envoy.wasm.runtime.null code: inline_string: envoy.wasm.stats