CONVENTIONS: Update CPU query sum_irate
Catching up with [1], which landed in OpenShift 4.9 and later via [2].
[1]:
[2]:
@@ -470,9 +470,9 @@ for all containers in the `openshift-monitoring` namespace:
# CPU request / usage of the SDN container
scalar(
max(kube_pod_container_resource_requests{namespace="openshift-sdn", container="sdn", resource="cpu"}) /
- max(max_over_time(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace="openshift-sdn", container="sdn"}[120m]))) *
+ max(max_over_time(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace="openshift-sdn", container="sdn"}[120m]))) *
# CPU usage of each container in the openshift-monitoring namespace
-max by (pod, container) (node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace="openshift-monitoring"})
+max by (pod, container) (node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace="openshift-monitoring"})
```
> Please note that pods which run on control-plane nodes must use the etcd container as their baseline.
