metric_emitter

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const PluginNameCustomMetricEmitter = "metric-emitter-plugin"

Variables

This section is empty.

Functions

func NewCustomMetricEmitter

func NewCustomMetricEmitter(conf *config.Configuration, extraConf interface{}, emitterPool metricspool.MetricsEmitterPool,
	metaServer *metaserver.MetaServer, metaCache metacache.MetaCache) (plugin.SysAdvisorPlugin, error)

Types

type CustomMetricEmitter

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

func (*CustomMetricEmitter) Init

func (cme *CustomMetricEmitter) Init() error

func (*CustomMetricEmitter) Name

func (cme *CustomMetricEmitter) Name() string

func (*CustomMetricEmitter) Run

func (cme *CustomMetricEmitter) Run(ctx context.Context)

Run is the main logic to get metric data from multiple sources and emit through the standard emit interface.

Directories

Path Synopsis
pod

Jump to

Keyboard shortcuts

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