Documentation
¶
Overview ¶
Noop perf Manager and Collector.
Handling statistics that are fully controlled in cAdvisor
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface {
Destroy()
UpdateStats(*info.ContainerStats) error
}
Collector can update ContainerStats by adding more metrics.
type Manager ¶
This is supposed to store global state about an cAdvisor metrics collector. cAdvisor manager will call Destroy() when it stops. For each container detected by the cAdvisor manager, it will call GetCollector() with the devices cgroup path for that container. GetCollector() is supposed to return an object that can update external stats for that container.
type NoopCollector ¶
type NoopCollector struct {
NoopDestroy
}
func (*NoopCollector) UpdateStats ¶
func (c *NoopCollector) UpdateStats(stats *v1.ContainerStats) error
type NoopDestroy ¶
type NoopDestroy struct{}
func (NoopDestroy) Destroy ¶
func (nsd NoopDestroy) Destroy()
type NoopManager ¶
type NoopManager struct {
NoopDestroy
}
func (*NoopManager) GetCollector ¶
func (m *NoopManager) GetCollector(cgroup string) (Collector, error)
type NoopResctrlManager ¶
type NoopResctrlManager struct {
NoopDestroy
}
NoopResctrlManager is the lean default: it collects nothing.
func (*NoopResctrlManager) GetCollector ¶
type ResctrlManager ¶
type ResctrlManager interface {
Destroy()
GetCollector(containerName string, getContainerPids func() ([]string, error), numberOfNUMANodes int) (Collector, error)
}
ResctrlManager is the resctrl analogue of Manager: it produces per-container resctrl Collectors. The full cAdvisor binary injects an implementation; the kubelet uses NoopResctrlManager (this library carries no resctrl code).