update rate limit metrics (#11127)

* update rate limit metrics

* fix display

* fix lint

* update text

* update content

* fix typo
This commit is contained in:
zirain 2022-04-02 05:06:03 +08:00 committed by GitHub
parent 7a9a420d7b
commit f2316b6eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -183,6 +183,22 @@ into the HTTP connection manager filter chain. The local rate limit filter's [to
is configured to allow 10 requests/min. The filter is also configured to add an `x-local-rate-limit`
response header to requests that are blocked.
{{< tip >}}
The statistics mentioned on the [Envoy rating limiting page](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/local_rate_limit_filter#statistics) are disabled by default. You can enable them with the following annotations during deployment:
{{< text yaml >}}
template:
metadata:
annotations:
proxy.istio.io/config: |-
proxyStatsMatcher:
inclusionRegexps:
- ".*http_local_rate_limit.*"
{{< /text >}}
{{< /tip >}}
{{< text bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3