Skip to content

bindata/assets/alerts/api-usage: Include removed_release in APIRemovedInNext*ReleaseInUse labels #1367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions bindata/assets/alerts/api-usage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ spec:
description: >-
Deprecated API that will be removed in the next version is being used. Removing the workload that is using
the {{ $labels.group }}.{{ $labels.version }}/{{ $labels.resource }} API might be necessary for
a successful upgrade to the next cluster version.
a successful upgrade to the next cluster version with Kubernetes {{ $labels.removed_release }}.
Refer to `oc get apirequestcounts {{ $labels.resource }}.{{ $labels.version }}.{{ $labels.group }} -o yaml` to identify the workload.
expr: |
group(apiserver_requested_deprecated_apis{removed_release="1.26"}) by (group,version,resource) and (sum by(group,version,resource) (rate(apiserver_request_total{system_client!="kube-controller-manager",system_client!="cluster-policy-controller"}[4h]))) > 0
expr: >-
group by (group,version,resource,removed_release) (apiserver_requested_deprecated_apis{removed_release="1.26"})
* on (group,version,resource) group_left ()
sum by (group,version,resource) (
rate(apiserver_request_total{system_client!="kube-controller-manager",system_client!="cluster-policy-controller"}[4h])
) > 0
for: 1h
labels:
namespace: openshift-kube-apiserver
Expand All @@ -27,11 +31,14 @@ spec:
description: >-
Deprecated API that will be removed in the next EUS version is being used. Removing the workload that is using
the {{ $labels.group }}.{{ $labels.version }}/{{ $labels.resource }} API might be necessary for
a successful upgrade to the next EUS cluster version.
a successful upgrade to the next EUS cluster version with Kubernetes {{ $labels.removed_release }}.
Refer to `oc get apirequestcounts {{ $labels.resource }}.{{ $labels.version }}.{{ $labels.group }} -o yaml` to identify the workload.
expr: |
group(apiserver_requested_deprecated_apis{removed_release=~"1\\.2[67]"}) by (group,version,resource) and (sum by(group,version,resource) (rate(apiserver_request_total{system_client!="kube-controller-manager",system_client!="cluster-policy-controller"}[4h]))) > 0

expr: >-
group by (group,version,resource,removed_release) (apiserver_requested_deprecated_apis{removed_release=~"1[.]2[67]"})
* on (group,version,resource) group_left ()
sum by (group,version,resource) (
rate(apiserver_request_total{system_client!="kube-controller-manager",system_client!="cluster-policy-controller"}[4h])
) > 0
for: 1h
labels:
namespace: openshift-kube-apiserver
Expand Down