cadvisor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 16 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) []common.Label

func GetContainerNameFromPod

func GetContainerNameFromPod(pod *v1.Pod, containerId string) string

Types

type CadvisorCollector

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

CadvisorCollector is the collector to collect container state

func NewCadvisor

func NewCadvisor(podLister corelisters.PodLister) *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 ContainerState

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

Jump to

Keyboard shortcuts

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