Skip to content

Commit 60c1d36

Browse files
authored
Merge pull request #34470 from Dominik-K/patch-1
blog: 2020-09-03-warnings: correct `removed_release` label
2 parents 5c19702 + 10d5924 commit 60c1d36

File tree

1 file changed

+2
-2
lines changed
  • content/en/blog/_posts/2020-09-03-warnings

1 file changed

+2
-2
lines changed

content/en/blog/_posts/2020-09-03-warnings/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ so we added two administrator-facing tools to help track use of deprecated APIs
6060
Starting in Kubernetes v1.19, when a request is made to a deprecated REST API endpoint,
6161
an `apiserver_requested_deprecated_apis` gauge metric is set to `1` in the kube-apiserver process.
6262
This metric has labels for the API `group`, `version`, `resource`, and `subresource`,
63-
and a `removed_version` label that indicates the Kubernetes release in which the API will no longer be served.
63+
and a `removed_release` label that indicates the Kubernetes release in which the API will no longer be served.
6464

6565
This is an example query using `kubectl`, [prom2json](https://github.com/prometheus/prom2json),
6666
and [jq](https://stedolan.github.io/jq/) to determine which deprecated APIs have been requested
@@ -169,7 +169,7 @@ You can also find that information through the following Prometheus query,
169169
which returns information about requests made to deprecated APIs which will be removed in v1.22:
170170

171171
```promql
172-
apiserver_requested_deprecated_apis{removed_version="1.22"} * on(group,version,resource,subresource)
172+
apiserver_requested_deprecated_apis{removed_release="1.22"} * on(group,version,resource,subresource)
173173
group_right() apiserver_request_total
174174
```
175175

0 commit comments

Comments
 (0)