Documentation ¶
Index ¶
- Variables
- func GetControllerPath(cgroupPaths map[string]string, controllerName string, cgroup2UnifiedMode bool) (string, bool)
- func MakeCgroupPaths(mountPoints map[string]string, name string) map[string]string
- func NewCgroupManager(name string, paths map[string]string) (cgroups.Manager, error)
- type MetricKind
- type MetricSet
Constants ¶
This section is empty.
Variables ¶
View Source
var CgroupSubsystems map[string]string
Functions ¶
func GetControllerPath ¶
func MakeCgroupPaths ¶
Types ¶
type MetricKind ¶
type MetricKind string
MetricKind represents the kind of metrics that cAdvisor exposes.
const ( CPUUsageMetrics MetricKind = "cpu" ProcessSchedulerMetrics MetricKind = "sched" PerCPUUsageMetrics MetricKind = "percpu" MemoryUsageMetrics MetricKind = "memory" MemoryNumaMetrics MetricKind = "memory_numa" CPULoadMetrics MetricKind = "cpuLoad" DiskIOMetrics MetricKind = "diskIO" DiskUsageMetrics MetricKind = "disk" NetworkUsageMetrics MetricKind = "network" NetworkTCPUsageMetrics MetricKind = "tcp" NetworkAdvancedTCPUsageMetrics MetricKind = "advtcp" NetworkUDPUsageMetrics MetricKind = "udp" AppMetrics MetricKind = "app" ProcessMetrics MetricKind = "process" HugetlbUsageMetrics MetricKind = "hugetlb" PerfMetrics MetricKind = "perf_event" ReferencedMemoryMetrics MetricKind = "referenced_memory" CPUTopologyMetrics MetricKind = "cpu_topology" ResctrlMetrics MetricKind = "resctrl" CPUSetMetrics MetricKind = "cpuset" OOMMetrics MetricKind = "oom_event" )
func (MetricKind) String ¶
func (mk MetricKind) String() string
type MetricSet ¶
type MetricSet map[MetricKind]struct{}
func (MetricSet) Difference ¶
func (MetricSet) Has ¶
func (ms MetricSet) Has(mk MetricKind) bool
func (*MetricSet) Set ¶
Not thread-safe, exported only for https://pkg.go.dev/flag#Value
Click to show internal directories.
Click to hide internal directories.