package
0.0.0-20241127083535-76a0d451abbd
Repository: https://github.com/oodle-ai/opentelemetry-collector.git
Documentation: pkg.go.dev

# Functions

IsCGroupV2 returns true if the system supports and uses cgroup2.
MemoryQuotaV2 returns the total memory limit of the process It is a result of cgroupv2 `memory.max`.
NewCGroup returns a new *CGroup from a given path.
NewCGroups returns a new *CGroups from given `mountinfo` and `cgroup` files under for some process under `/proc` file system (see also proc(5) for more information).
NewCGroupsForCurrentProcess returns a new *CGroups instance for the current process.
NewCGroupSubsysFromLine returns a new *CGroupSubsys by parsing a string in the format of `/proc/$PID/cgroup`.
NewMountPointFromLine parses a line read from `/proc/$PID/mountinfo` and returns a new *MountPoint.

# Structs

CGroup represents the data structure for a Linux control group.
CGroupSubsys represents the data structure for entities in `/proc/$PID/cgroup`.
MountPoint is the data structure for the mount points in `/proc/$PID/mountinfo`.

# Type aliases

CGroups is a map that associates each CGroup with its subsystem name.