Versions in this module Expand all Collapse all v0 v0.0.1 Aug 3, 2023 Changes in this version + const DefaultPeriod + var ArgContainerHints = flag.String("container_hints", "/etc/cadvisor/container_hints.json", ...) + func AssignDeviceNamesToDiskStats(namer DeviceNamer, stats *info.DiskIoStats) + func CgroupExists(cgroupPaths map[string]string) bool + func DebugInfo(watches map[string][]string) map[string][]string + func GetControllerPath(cgroupPaths map[string]string, controllerName string, cgroup2UnifiedMode bool) (string, bool) + func GetSpec(cgroupPaths map[string]string, machineInfoFactory info.MachineInfoFactory, ...) (info.ContainerSpec, error) + func ListContainers(name string, cgroupPaths map[string]string, listType container.ListType) ([]info.ContainerReference, error) + func ListDirectories(dirpath string, parent string, recursive bool, output map[string]struct{}) error + func MakeCgroupPaths(mountPoints map[string]string, name string) map[string]string + func RemoveNetMetrics(metrics container.MetricSet, remove bool) container.MetricSet + type ContainerHints struct + AllHosts []containerHint + func GetContainerHintsFromFile(containerHintsFile string) (ContainerHints, error) + type DeviceNamer interface + DeviceName func(major, minor uint64) (string, bool) + type FsHandler interface + Start func() + Stop func() + Usage func() FsUsage + func NewFsHandler(period time.Duration, rootfs, extraDir string, fsInfo fs.FsInfo) FsHandler + type FsUsage struct + BaseUsageBytes uint64 + InodeUsage uint64 + TotalUsageBytes uint64 + type InotifyWatcher struct + func NewInotifyWatcher() (*InotifyWatcher, error) + func (iw *InotifyWatcher) AddWatch(containerName, dir string) (bool, error) + func (iw *InotifyWatcher) Close() error + func (iw *InotifyWatcher) Error() chan error + func (iw *InotifyWatcher) Event() chan *inotify.Event + func (iw *InotifyWatcher) GetWatches() map[string][]string + func (iw *InotifyWatcher) RemoveWatch(containerName, dir string) (bool, error) + type MachineInfoNamer info.MachineInfo + func (n *MachineInfoNamer) DeviceName(major, minor uint64) (string, bool) + type Mount struct + ContainerDir string + HostDir string