Add policy metrics to proxy-metrics docs page (#1471)

This change adds HTTP and TCP policy metrics to the proxy-metrics
documentation page. For HTTP, we mention the `authz_name` label. Each
metric has a short summary of what it tracks.

Fixes #1451

Signed-off-by: Matei David <matei@buoyant.io>
This commit is contained in:
Matei David 2022-08-30 11:15:26 +01:00 committed by GitHub
parent 4446249843
commit fbd61d17ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -43,6 +43,17 @@ port (default: `:4191`) in the [Prometheus format][prom-format].
they have:
* `addr`: The address used to connect to the control plane.
* `inbound_http_authz_allow_total`: A counter of the total number of inbound
HTTP requests that were authorized.
* `authz_name`: The name of the authorization policy used to allow the request.
* `inbound_http_authz_deny_total`: A counter of the total number of inbound
HTTP requests that could not be processed due to being denied by the
authorization policy.
* `inbound_http_route_not_found_total`: A counter of the total number of
inbound HTTP requests that could not be associated with a route.
Note that latency measurements are not exported to Prometheus until the stream
_completes_. This is necessary so that latencies can be labeled with the appropriate
[response classification](#response-labels).
@ -174,6 +185,10 @@ layer.
connections that could not be processed due to a proxy error.
* `outbound_tcp_errors_total`: A counter of the total number of outbound TCP
connections that could not be processed due to a proxy error.
* `inbound_tcp_authz_allow_total`: A counter of the total number of TCP
connections that were authorized.
* `inbound_tcp_authz_deny_total`: A counter of the total number of TCP
connections that were denied
### Labels