package stats
import "github.com/google/cadvisor/stats"
Noop perf Manager and Collector.
Handling statistics that are fully controlled in cAdvisor
Index ¶
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)
Source Files ¶
- Version
- v0.52.1 (latest)
- Published
- Mar 5, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 days ago –
Tools for package owners.