Bug 1740372

Summary: Cluster infrastructure CPU/memory accounting doesn't cover nodes, system level processes
Product: OpenShift Container Platform Reporter: Clayton Coleman <ccoleman>
Component: MonitoringAssignee: Simon Pasquier <spasquie>
Status: CLOSED CURRENTRELEASE QA Contact: Junqi Zhao <juzhao>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: anpicker, ffranz, vlaad
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1740373 1742744 1752983 (view as bug list) Environment:
Last Closed: 2022-08-25 22:06:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1740373    

Description Clayton Coleman 2019-08-12 18:48:20 UTC
infrastructure CPU calculations don't take into account the processes running on the nodes.

Instead of the current calculation, find all workload CPU/memory usage not in the openshift-* namespaces, then subtract that from the cluster CPU usage to get infrastructure use.

Comment 1 Clayton Coleman 2019-08-12 18:49:12 UTC
Metrics 

workload:cpu_usage_cores:sum
workload:memory_usage_bytes:sum

are added

openshift:cpu_usage_cores:sum
openshift:memory_usage_bytes:sum

now include all CPU/memory on nodes not explicitly part of a workload.