Bug 2112999 - sum_irate doesn't work in OCP 4.8
Summary: sum_irate doesn't work in OCP 4.8
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.8
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.8.z
Assignee: Juan Rodriguez
QA Contact: Junqi Zhao
Whiteboard: wip
Depends On: 2112996
TreeView+ depends on / blocked
Reported: 2022-08-01 16:28 UTC by Juan Rodriguez
Modified: 2023-06-06 01:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2112996
Last Closed: 2022-09-14 20:38:59 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift console pull 11917 0 None open Bug 2112999: Replace sum_irate with sum_rate for Deployments CPU graph 2022-08-11 07:32:37 UTC
Red Hat Product Errata RHSA-2022:6308 0 None None None 2022-09-14 20:39:15 UTC

Comment 2 Junqi Zhao 2022-08-17 08:05:31 UTC
tested with the PR, could see the CPU usage graph for deployment, see the attached picture, and "node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate" is replaced by "node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate"
# token=`oc sa get-token prometheus-k8s -n openshift-monitoring`
# oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos-querier.openshift-monitoring.svc:9091/api/v1/label/__name__/values' | jq | grep node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate

Comment 4 Juan Rodriguez 2022-08-24 09:21:59 UTC
UI tests for branch release-4.8 are broken (see https://sippy.dptools.openshift.org/sippy-ng/jobs/4.8/analysis?filters=%7B%22items%22%3A%5B%7B%22columnField%22%3A%22name%22%2C%22operatorValue%22%3A%22equals%22%2C%22value%22%3A%22periodic-ci-openshift-release-master-nightly-4.8-console-aws%22%7D%5D%7D), there is a fix in https://github.com/openshift/console/pull/11966 for 4.10 that is being back ported, as seen in that PR automatic cherry pick for 4.8 failed but the team is working on a manual back port

Comment 6 Junqi Zhao 2022-08-30 01:51:42 UTC
the fix is in 4.8.0-0.nightly-2022-08-29-151822 and later builds, based on comment 3, move the bug to verified

Comment 9 errata-xmlrpc 2022-09-14 20:38:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.8.49 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.