package cgroups

import "github.com/containerd/containerd/metrics/cgroups"

Index

Functions

func New

func New(ic *plugin.InitContext) (interface{}, error)

New returns a new cgroups monitor

Types

type Config

type Config struct {
	NoPrometheus bool `toml:"no_prometheus"`
}

Config for the cgroups monitor

type Trigger

type Trigger func(string, string, cgroups.Cgroup)

Trigger will be called when an event happens and provides the cgroup where the event originated from

Source Files

blkio.go cgroups.go cpu.go hugetlb.go memory.go metric.go metrics.go oom.go pids.go

Version
v1.3.6
Published
Jun 30, 2020
Platform
linux/amd64
Imports
21 packages
Last checked
2 minutes ago

Tools for package owners.