You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bindata/assets/alerts/api-usage: Include removed_release in APIRemovedInNext*ReleaseInUse labels
There may be version skew around updates, where an alert gets bumped
to consider 1.26 "the next release" while other cluster components are
still running 1.25, or vice versa. This change makes it a bit easier
to understand those skew issues by explicitly including in the alert
description (and Telemetry-uploaded alert labels) the removed_release
value we're complaining about.
Copy file name to clipboardExpand all lines: bindata/assets/alerts/api-usage.yaml
+12-5
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,14 @@ spec:
13
13
description: >-
14
14
Deprecated API that will be removed in the next version is being used. Removing the workload that is using
15
15
the {{ $labels.group }}.{{ $labels.version }}/{{ $labels.resource }} API might be necessary for
16
-
a successful upgrade to the next cluster version.
16
+
a successful upgrade to the next cluster version with Kubernetes {{ $labels.removed_release }}.
17
17
Refer to `oc get apirequestcounts {{ $labels.resource }}.{{ $labels.version }}.{{ $labels.group }} -o yaml` to identify the workload.
18
18
expr: |
19
-
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
19
+
group by (group,version,resource,removed_release) (apiserver_requested_deprecated_apis{removed_release="1.26"})
Deprecated API that will be removed in the next EUS version is being used. Removing the workload that is using
29
33
the {{ $labels.group }}.{{ $labels.version }}/{{ $labels.resource }} API might be necessary for
30
-
a successful upgrade to the next EUS cluster version.
34
+
a successful upgrade to the next EUS cluster version with Kubernetes {{ $labels.removed_release }}.
31
35
Refer to `oc get apirequestcounts {{ $labels.resource }}.{{ $labels.version }}.{{ $labels.group }} -o yaml` to identify the workload.
32
36
expr: |
33
-
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
34
-
37
+
group by (group,version,resource,removed_release) (apiserver_requested_deprecated_apis{removed_release=~"1[.]2[67]"})
0 commit comments