|
| 1 | +# Metrics |
| 2 | + |
| 3 | +kube-oidc-proxy exposes a number of Prometheus metrics to give some insights |
| 4 | +into how the proxy is performing. These metrics are designed to be used to |
| 5 | +better inform how the proxy is behaving, and the general usage from clients, |
| 6 | +*_not_* to alert, or otherwise give other security insights. If you are |
| 7 | +interested in auditing and access review functionality, please refer to |
| 8 | +[auditing](../auditing.md). |
| 9 | + |
| 10 | +The proxy exposes the following metrics: |
| 11 | + |
| 12 | +### kube_oidc_proxy_http_client_requests |
| 13 | +counter - {http status code, path, remote address} |
| 14 | +The number of requests for incoming requests. |
| 15 | + |
| 16 | +### kube_oidc_proxy_http_client_duration_seconds |
| 17 | +histogram - {remote address} |
| 18 | +The duration in seconds for incoming client requests to be responded to. |
| 19 | + |
| 20 | +### kube_oidc_proxy_http_server_requests |
| 21 | +counter - {http status code, path, remote address} |
| 22 | +The requests for outgoing server requests. |
| 23 | + |
| 24 | +### kube_oidc_proxy_http_server_duration_seconds |
| 25 | +histogram - {remote address} |
| 26 | +The duration in seconds for outgoing server requests to be responded to. |
| 27 | + |
| 28 | +### kube_oidc_proxy_token_review_duration_seconds |
| 29 | +histogram - {authenticated, http status code, remote address, user} |
| 30 | +The duration in seconds for a token review lookup. Authenticated requests are 1, else 0. |
| 31 | + |
| 32 | +### kube_oidc_proxy_oidc_authentication_count |
| 33 | +counter - {authenticated, remote address, user} |
| 34 | +The count for OIDC authentication. Authenticated requests are 1, else 0. |
| 35 | + |
| 36 | +## Metrics Address |
| 37 | + |
| 38 | +By default, metrics are exposed on `0.0.0.0:80/metrics`. The flag |
| 39 | +`--metrics-serving-address` can be used to change the address, however the |
| 40 | +`/metrics` path will remain the same. The metrics address must _not_ conflict |
| 41 | +with the proxy and probe addresses. Setting `--metrics-serving-address=""` will |
| 42 | +disable the metrics server. |
0 commit comments