Documentation ¶
Index ¶
Constants ¶
View Source
const PluginNameCustomMetricEmitter = "metric-emitter-plugin"
Variables ¶
This section is empty.
Functions ¶
func NewCustomMetricEmitter ¶
func NewCustomMetricEmitter(conf *config.Configuration, _ 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.
type SyncerInitFunc ¶
type SyncerInitFunc func(conf *config.Configuration, metricEmitter, dataEmitter metrics.MetricEmitter, metaServer *metaserver.MetaServer, metaCache *metacache.MetaCache) emitter.CustomMetricSyncer
Click to show internal directories.
Click to hide internal directories.