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: 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
parse_content(content)[source]

This method must be implemented by classes based on this class.