Documentation ¶
Index ¶
- Constants
- type StatisWorker
- func (s *StatisWorker) Destroy() error
- func (s *StatisWorker) Initialize(conf *plugin.ConfigEntry) error
- func (s *StatisWorker) Name() string
- func (s *StatisWorker) ReportCallMetrics(metric metrics.CallMetric)
- func (s *StatisWorker) ReportConfigMetrics(metric ...metrics.ConfigMetrics)
- func (s *StatisWorker) ReportDiscoverCall(metric metrics.ClientDiscoverMetric)
- func (s *StatisWorker) ReportDiscoveryMetrics(metric ...metrics.DiscoveryMetric)
Constants ¶
View Source
const (
PluginName = "prometheus"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatisWorker ¶
type StatisWorker struct { *base.BaseWorker // contains filtered or unexported fields }
PrometheusStatis is a struct for prometheus statistics
func (*StatisWorker) Initialize ¶
func (s *StatisWorker) Initialize(conf *plugin.ConfigEntry) error
Initialize 初始化统计插件
func (*StatisWorker) ReportCallMetrics ¶
func (s *StatisWorker) ReportCallMetrics(metric metrics.CallMetric)
ReportCallMetrics report call metrics info
func (*StatisWorker) ReportConfigMetrics ¶
func (s *StatisWorker) ReportConfigMetrics(metric ...metrics.ConfigMetrics)
ReportConfigMetrics report config_center metrics
func (*StatisWorker) ReportDiscoverCall ¶ added in v1.17.0
func (s *StatisWorker) ReportDiscoverCall(metric metrics.ClientDiscoverMetric)
ReportDiscoverCall report discover service times
func (*StatisWorker) ReportDiscoveryMetrics ¶
func (s *StatisWorker) ReportDiscoveryMetrics(metric ...metrics.DiscoveryMetric)
ReportDiscoveryMetrics report discovery metrics
Click to show internal directories.
Click to hide internal directories.