plugin/kubernetes: expose client-go internal request metrics (#5991)

This commit is contained in:
Yashpal
2023-04-22 22:08:49 +05:30
committed by GitHub
parent 68816a42a7
commit 0862dd1cb5
2 changed files with 79 additions and 0 deletions

View File

@@ -229,6 +229,11 @@ If monitoring is enabled (via the *prometheus* plugin) then the following metric
* `headless_with_selector`
* `headless_without_selector`
The following are client level metrics to monitor apiserver request latency & status codes. `verb` identifies the apiserver [request type](https://kubernetes.io/docs/reference/using-api/api-concepts/#single-resource-api) and `url`/`host` denotes the apiserver endpoint.
* `coredns_kubernetes_rest_client_request_duration_seconds{verb, url}` - captures apiserver request latency perceived by client grouped by `verb` and `url`.
* `coredns_kubernetes_rest_client_rate_limiter_duration_seconds{verb, url}` - captures apiserver request latency contributed by client side rate limiter grouped by `verb` & `url`.
* `coredns_kubernetes_rest_client_requests_total{method, code, host}` - captures total apiserver requests grouped by `method`, `status_code` & `host`.
## Bugs
The duration metric only supports the "headless\_with\_selector" service currently.