Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
documentation_complete: true

platform: '{{{ product }}}-node'

title: 'Ensure vCPU metrics are enabled'

description: |-
OpenShift Virtualization provides metrics that you can use to monitor the
consumption of cluster infrastructure resources, including virtual CPU
(vCPU). In order to use the vCPU metric, the <tt>schedstats=enable</tt>
kernel argument must be applied.

rationale: |-
Metrics are a fundamental mechanism for understanding if the guest is
behaving in an anomalous or otherwise suspicious manner.

severity: medium

ocil_clause: 'schedstats is not enabled in the kernel command line'

ocil: |-
Verify if the option is enabled in the kernel command line:
<pre>$ cat /proc/cmdline | grep schedstats=enable</pre>

template:
name: coreos_kernel_option
vars:
arg_name: schedstats
arg_value: enable
1 change: 1 addition & 0 deletions products/ocp4/profiles/cis-vm-extension-node.profile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ description: |-

selections:
- kubevirt-nested-virtualization-disabled
- kubevirt-vcpu-metrics-enabled
- kubevirt-seccomp-profile-permissions
Loading