Skip to content

Commit

Permalink
alerts: give exact oc get apirequestcounts command in APIRemovedInN…
Browse files Browse the repository at this point in the history
…extReleaseInUse alert
  • Loading branch information
sttts committed Jul 1, 2021
1 parent 785676c commit ecca0c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bindata/v4.1.0/alerts/api-usage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
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.
Refer to the apirequestcount.apiserver.openshift.io resources to identify the workload.
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.22"}) 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
for: 1h
Expand All @@ -25,7 +25,7 @@ spec:
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.
Refer to the apirequestcount.apiserver.openshift.io resources to identify the workload.
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[123]"}) 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
Expand Down
4 changes: 2 additions & 2 deletions pkg/operator/v410_00_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ecca0c6

Please sign in to comment.