reporter

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 32 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodResourceType added in v0.4.1

type PodResourceType string
const (
	Guaranteed PodResourceType = "guaranteed"
	BestEffort PodResourceType = "best-effort"
	Unknown    PodResourceType = "unknown"
)

type Reporter added in v0.4.1

type Reporter interface {
	Run(ctx context.Context)
}

Reporter is used to report resource

func NewHeadroomReporter

func NewHeadroomReporter(emitter metrics.MetricEmitter, metaServer *metaserver.MetaServer,
	conf *config.Configuration, headroomAdvisor hmadvisor.ResourceAdvisor,
) (Reporter, error)

NewHeadroomReporter returns a wrapper of headroom reporter plugins as headroom reporter

func NewNodeMetricsReporter added in v0.4.1

func NewNodeMetricsReporter(emitter metrics.MetricEmitter, metaServer *metaserver.MetaServer,
	metaReader metacache.MetaReader, conf *config.Configuration,
) (Reporter, error)

NewNodeMetricsReporter returns a wrapper of node metrics reporter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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