stats

package
v0.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 2 Imported by: 4

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

type Manager interface {
	Destroy()
	GetCollector(deviceCgroup string) (Collector, error)
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL