s/removed_version/removed_release
fix `apiserver_requested_deprecated_apis` memtric's label.
ref: 044f9102dd/staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go (L70)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
This commit is contained in:
parent
94b2f857bb
commit
72376c52d7
|
|
@ -303,12 +303,12 @@ Starting in Kubernetes v1.19, making an API request to a deprecated REST API end
|
||||||
2. Adds a `"k8s.io/deprecated":"true"` annotation to the [audit event](/docs/tasks/debug-application-cluster/audit/) recorded for the request.
|
2. Adds a `"k8s.io/deprecated":"true"` annotation to the [audit event](/docs/tasks/debug-application-cluster/audit/) recorded for the request.
|
||||||
3. Sets an `apiserver_requested_deprecated_apis` gauge metric to `1` in the `kube-apiserver`
|
3. Sets an `apiserver_requested_deprecated_apis` gauge metric to `1` in the `kube-apiserver`
|
||||||
process. The metric has labels for `group`, `version`, `resource`, `subresource` that can be joined
|
process. The metric has labels for `group`, `version`, `resource`, `subresource` that can be joined
|
||||||
to the `apiserver_request_total` metric, and a `removed_version` label that indicates the
|
to the `apiserver_request_total` metric, and a `removed_release` label that indicates the
|
||||||
Kubernetes release in which the API will no longer be served. The following Prometheus query
|
Kubernetes release in which the API will no longer be served. The following Prometheus query
|
||||||
returns information about requests made to deprecated APIs which will be removed in v1.22:
|
returns information about requests made to deprecated APIs which will be removed in v1.22:
|
||||||
|
|
||||||
```promql
|
```promql
|
||||||
apiserver_requested_deprecated_apis{removed_version="1.22"} * on(group,version,resource,subresource) group_right() apiserver_request_total
|
apiserver_requested_deprecated_apis{removed_release="1.22"} * on(group,version,resource,subresource) group_right() apiserver_request_total
|
||||||
```
|
```
|
||||||
|
|
||||||
### Fields of REST resources
|
### Fields of REST resources
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue