You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/root/configuration/http/http_filters/header_to_metadata_filter.rst
+40-3Lines changed: 40 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,26 @@ A typical use case for this filter is to dynamically match requests with load ba
20
20
subsets. For this, a given header's value would be extracted and attached to the request
21
21
as dynamic metadata which would then be used to match a subset of endpoints.
22
22
23
+
Statistics
24
+
----------
25
+
26
+
The filter can optionally emit statistics when the :ref:`stat_prefix <envoy_v3_api_field_extensions.filters.http.header_to_metadata.v3.Config.stat_prefix>` field is configured.
27
+
These statistics are rooted at *http_filter_name.<stat_prefix>* with the following counters:
28
+
29
+
.. csv-table::
30
+
:header: Name, Type, Description
31
+
:widths: 1, 1, 2
32
+
33
+
request_rules_processed, Counter, Total number of request rules processed
34
+
response_rules_processed, Counter, Total number of response rules processed
35
+
request_metadata_added, Counter, Total number of metadata entries successfully added from request headers
36
+
response_metadata_added, Counter, Total number of metadata entries successfully added from response headers
37
+
request_header_not_found, Counter, Total number of times expected request headers were missing
38
+
response_header_not_found, Counter, Total number of times expected response headers were missing
39
+
base64_decode_failed, Counter, Total number of times Base64 decoding failed
40
+
header_value_too_long, Counter, Total number of times header values exceeded the maximum length
41
+
regex_substitution_failed, Counter, Total number of times regex substitution resulted in empty values
42
+
23
43
Example
24
44
-------
25
45
@@ -79,7 +99,24 @@ Note that this filter also supports per route configuration:
79
99
This can be used to either override the global configuration or if the global configuration
80
100
is empty (no rules), it can be used to only enable the filter at a per route level.
81
101
82
-
Statistics
83
-
----------
102
+
Configuration with Statistics
103
+
-----------------------------
104
+
105
+
To enable statistics collection, configure the ``stat_prefix`` field:
0 commit comments