KubepodsCpuQuota - CPU quota for each Kubernetes pod¶
This parser reads the content of /sys/fs/cgroup/cpu/kubepods.slice/kubepods-burstable.slice/*.slice/cpu.cfs_quota_us
.
-
class
insights.parsers.kubepods_cpu_quota.
KubepodsCpuQuota
(context)[source]¶ Bases:
insights.core.Parser
Class
KubepodsCpuQuota
parses the content of the/sys/fs/cgroup/cpu/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod*.slice/cpu.cfs_quota_us
.-
cpu_quota
¶ It is used to show the value of cpu quota for a particular pod in a Kubernetes cluster or an OpenShift cluster.
Type: int
A typical sample of the content of this file looks like:
-1
Examples
>>> type(kubepods_cpu_quota) <class 'insights.parsers.kubepods_cpu_quota.KubepodsCpuQuota'> >>> kubepods_cpu_quota.cpu_quota -1
-