Skip to content

Commit

Permalink
fix(stats filter): update stats filter config to new EnvoyFilter API (e…
Browse files Browse the repository at this point in the history
…nvoyproxy#2428)

Signed-off-by: Douglas Reid <[email protected]>
  • Loading branch information
douglas-reid authored and istio-testing committed Sep 20, 2019
1 parent 628fa42 commit 33a5366
Showing 1 changed file with 24 additions and 55 deletions.
79 changes: 24 additions & 55 deletions extensions/stats/testdata/istio/stats_filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,27 @@ kind: EnvoyFilter
metadata:
name: stats-filter
spec:
filters:
- filterConfig:
configuration: |
{
"debug": "false",
"stat_prefix": "istio",
}
vm_config:
code:
inline_string: envoy.wasm.stats
vm: envoy.wasm.vm.null
filterName: envoy.wasm
filterType: HTTP
insertPosition:
index: BEFORE
relativeTo: envoy.router
listenerMatch:
listenerProtocol: HTTP
listenerType: GATEWAY
- filterConfig:
configuration: |
{
"debug": "false",
"stat_prefix": "istio",
}
vm_config:
code:
inline_string: envoy.wasm.stats
vm: envoy.wasm.vm.null
filterName: envoy.wasm
filterType: HTTP
insertPosition:
index: BEFORE
relativeTo: envoy.router
listenerMatch:
listenerProtocol: HTTP
listenerType: SIDECAR_INBOUND
- filterConfig:
configuration: |
{
"debug": "false",
"stat_prefix": "istio",
}
vm_config:
code:
inline_string: envoy.wasm.stats
vm: envoy.wasm.vm.null
filterName: envoy.wasm
filterType: HTTP
insertPosition:
index: BEFORE
relativeTo: envoy.router
listenerMatch:
listenerProtocol: HTTP
listenerType: SIDECAR_OUTBOUND
configPatches:
- applyTo: HTTP_FILTER
match:
context: ANY # inbound, outbound, and gateway
listener:
filterChain:
filter:
name: "envoy.http_connection_manager"
subFilter:
name: "envoy.router"
patch:
operation: INSERT_BEFORE
value:
name: envoy.wasm
config:
configuration: |
{
"debug": "false",
"stat_prefix": "istio",
}
vm_config:
vm: envoy.wasm.vm.null
code:
inline_string: envoy.wasm.stats

0 comments on commit 33a5366

Please sign in to comment.