Versions in this module Expand all Collapse all v0 v0.60.0 Jun 20, 2026 Changes in this version + const DefaultPeriod — linux/amd64 + var ArgContainerHints = flag.String("container_hints", "/etc/cadvisor/container_hints.json", ...) — linux/amd64 + func AssignDeviceNamesToDiskStats(namer DeviceNamer, stats *info.DiskIoStats) — linux/amd64 + func CgroupExists(cgroupPaths map[string]string) bool — linux/amd64 + func DebugInfo(watches map[string][]string) map[string][]string — linux/amd64 + func GetControllerPath(cgroupPaths map[string]string, controllerName string, cgroup2UnifiedMode bool) (string, bool) — linux/amd64 + func GetSpec(cgroupPaths map[string]string, machineInfoFactory info.MachineInfoFactory, ...) (info.ContainerSpec, error) — linux/amd64 + func ListContainers(name string, cgroupPaths map[string]string, listType container.ListType) ([]info.ContainerReference, error) — linux/amd64 + func ListDirectories(dirpath string, parent string, recursive bool, output map[string]struct{}) error — linux/amd64 + func MakeCgroupPaths(mountPoints map[string]string, name string) map[string]string — linux/amd64 + func RemoveNetMetrics(metrics container.MetricSet, remove bool) container.MetricSet — linux/amd64 + type ContainerHints struct — linux/amd64 + AllHosts []containerHint + func GetContainerHintsFromFile(containerHintsFile string) (ContainerHints, error) + type DeviceNamer interface — linux/amd64 + DeviceName func(major, minor uint64) (string, bool) + type FsHandler interface — linux/amd64 + Start func() + Stop func() + Usage func() FsUsage + func NewFsHandler(period time.Duration, rootfs, extraDir string, fsInfo fs.FsInfo) FsHandler + type FsUsage struct — linux/amd64 + BaseUsageBytes uint64 + InodeUsage uint64 + TotalUsageBytes uint64 + type InotifyWatcher struct — linux/amd64 + 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 — linux/amd64 + func (n *MachineInfoNamer) DeviceName(major, minor uint64) (string, bool) + type Mount struct — linux/amd64 + ContainerDir string + HostDir string