Versions in this module Expand all Collapse all v1 v1.5.4 Oct 26, 2023 Changes in this version + const PluginName + type Config struct + Address string + IP string + Interval time.Duration + PortStr string + Type string + func (c *Config) SetDefault() + func (c *Config) Verify() error + type PrometheusReporter struct + func (s *PrometheusReporter) Destroy() error + func (s *PrometheusReporter) Info() model.StatInfo + func (s *PrometheusReporter) Init(ctx *plugin.InitContext) error + func (s *PrometheusReporter) Name() string + func (s *PrometheusReporter) ReportStat(metricsType model.MetricType, metricsVal model.InstanceGauge) error + func (s *PrometheusReporter) Type() common.Type + type PullAction struct + func (pa *PullAction) Info() model.StatInfo + func (pa *PullAction) Init(initCtx *plugin.InitContext, reporter *PrometheusReporter) + func (pa *PullAction) Run(ctx context.Context) + type PushAction struct + func (pa *PushAction) Info() model.StatInfo + func (pa *PushAction) Init(initCtx *plugin.InitContext, reporter *PrometheusReporter) + func (pa *PushAction) Run(ctx context.Context) + type ReportAction interface + Info func() model.StatInfo + Init func(initCtx *plugin.InitContext, reporter *PrometheusReporter) + Run func(ctx context.Context)