OpenShift Virtualization
TMA-OPENSHIFT-VIRT-6.2
Enable vCPU metrics
MediumLevel 1Manual reviewopenshift-virt
Description
Openshift Virtualization provides metrics that you can use to monitor the consumption of cluster infrastructure resources, including vCPU. In order to use the vCPU metric, the schedstats=enable kernel argument must be applied. The benchmark marks this recommendation Manual; TMAegis reports it as a manual review item with the audit steps.
How it is checked
Audit method: Manual review
This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.
Verify if the option is enabled in the kernel command line: $ cat /proc/cmdline | grep schedstats=enable
How it is fixed
Fix method: Guidance or infrastructure patch
Enable the kernel option on all workernodes as documented in Chapter 1. Customizing nodes | Red Hat Product Documentation
Properties
- Operating systems
- Any
- Tags
- openshift-virtmanual-review
- Reference
- CIS Red Hat OpenShift Virtual Machine Extension Benchmark v1.0.0 - 6.2 Enable vCPU metrics