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 accelerator 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)
Click to show internal directories.
Click to hide internal directories.