cadvisor

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMetricNameExist added in v0.3.0

func CheckMetricNameExist(name string) bool

func GetContainerLabels

func GetContainerLabels(pod *v1.Pod, containerId, containerName string, hasExtRes bool) []common.Label

Types

type CadvisorCollector

type CadvisorCollector struct {
	Manager Manager
	// contains filtered or unexported fields
}

CadvisorCollector is the collector to collect container state

func NewCadvisorCollector added in v0.4.0

func NewCadvisorCollector(podLister corelisters.PodLister, manager Manager) *CadvisorCollector

func (*CadvisorCollector) Collect

func (c *CadvisorCollector) Collect() (map[string][]common.TimeSeries, error)

func (*CadvisorCollector) GetType

func (c *CadvisorCollector) GetType() types.CollectType

func (*CadvisorCollector) Stop

func (c *CadvisorCollector) Stop() error

Stop cadvisor and clear existing factory

type CadvisorManager added in v0.4.0

type CadvisorManager struct {
	cmanager.Manager
	// contains filtered or unexported fields
}

func (*CadvisorManager) GetCgroupDriver added in v0.5.0

func (m *CadvisorManager) GetCgroupDriver() string

type ContainerState

type ContainerState struct {
	// contains filtered or unexported fields
}

type Manager added in v0.4.0

type Manager interface {
	GetContainerInfoV2(containerName string, options cadvisorapiv2.RequestOptions) (map[string]cadvisorapiv2.ContainerInfo, error)
	GetContainerInfo(containerName string, query *info.ContainerInfoRequest) (*info.ContainerInfo, error)
	GetMachineInfo() (*info.MachineInfo, error)
	GetCgroupDriver() string
}

func NewCadvisorManager added in v0.4.0

func NewCadvisorManager(cgroupDriver string) Manager

Jump to

Keyboard shortcuts

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