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.
Click to show internal directories.
Click to hide internal directories.