collector

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 17 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

Types

type Collector

type Collector interface {
	GetType() types.CollectType
	Collect() (map[string][]common.TimeSeries, error)
	Stop() error
}

type StateCollector

type StateCollector struct {
	AnalyzerChann     chan map[string][]common.TimeSeries
	NodeResourceChann chan map[string][]common.TimeSeries
	PodResourceChann  chan map[string][]common.TimeSeries
	// contains filtered or unexported fields
}

func NewStateCollector

func NewStateCollector(nodeName string, nepLister ensuranceListers.NodeQOSEnsurancePolicyLister, podLister corelisters.PodLister,
	nodeLister corelisters.NodeLister, ifaces []string, healthCheck *metrics.HealthCheck, collectInterval time.Duration, exclusiveCPUSet func() cpuset.CPUSet, manager cadvisor.Manager) *StateCollector

func (*StateCollector) Collect

func (s *StateCollector) Collect()

func (*StateCollector) GetCadvisorManager added in v0.4.0

func (s *StateCollector) GetCadvisorManager() cadvisor.Manager

func (*StateCollector) GetCollectors added in v0.3.0

func (s *StateCollector) GetCollectors() *sync.Map

func (*StateCollector) Name

func (s *StateCollector) Name() string

func (*StateCollector) Run

func (s *StateCollector) Run(stop <-chan struct{})

func (*StateCollector) StopCollectors

func (s *StateCollector) StopCollectors()

func (*StateCollector) UpdateCollectors

func (s *StateCollector) UpdateCollectors()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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