metricsadvisor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPerformanceCollector added in v1.0.0

func NewPerformanceCollector(statesInformer statesinformer.StatesInformer, metricCache metriccache.MetricCache, collectTimeWindow int) *performanceCollector

Types

type Collector

type Collector interface {
	Run(stopCh <-chan struct{}) error
	HasSynced() bool
}

func NewCollector

func NewCollector(cfg *Config, statesInformer statesinformer.StatesInformer, metricCache metriccache.MetricCache) Collector

type Config

type Config struct {
	CollectResUsedIntervalSeconds         int
	CollectNodeCPUInfoIntervalSeconds     int
	PerformanceCollectorIntervalSeconds   int
	PerformanceCollectorTimeWindowSeconds int
}

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) InitFlags

func (c *Config) InitFlags(fs *flag.FlagSet)

type GPUDeviceManager added in v0.6.0

type GPUDeviceManager interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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