Versions in this module Expand all Collapse all v0 v0.1.3 Aug 2, 2022 v0.1.2 Jul 29, 2022 Changes in this version + const CalleeInstance + const CalleeMethod + const CalleeNamespace + const CalleeRetCode + const CalleeService + const CalleeSubset + const CallerIP + const CallerLabels + const CallerNamespace + const CallerService + const MetricNameLabel + const MetricsNameCircuitBreakerHalfOpen + const MetricsNameCircuitBreakerOpen + const MetricsNameRateLimitRequestLimit + const MetricsNameRateLimitRequestPass + const MetricsNameRateLimitRequestTotal + const MetricsNameUpstreamRequestDelay + const MetricsNameUpstreamRequestMaxTimeout + const MetricsNameUpstreamRequestSuccess + const MetricsNameUpstreamRequestTimeout + const MetricsNameUpstreamRequestTotal + const NilValue + const PluginName + var CircuitBreakerGaugeLabelOrder map[string]LabelValueSupplier = map[string]LabelValueSupplier + var CircuitBreakerGaugeNames []string = []string + var CircuitBreakerHalfOpen = metricDesc + var CircuitBreakerOpen = metricDesc + var InstanceGaugeLabelOrder map[string]LabelValueSupplier = map[string]LabelValueSupplier + var RateLimitGaugeLabelOrder map[string]LabelValueSupplier = map[string]LabelValueSupplier + var RateLimitGaugeNames []string = []string + var RateLimitRequestLimit = metricDesc + var RateLimitRequestPass = metricDesc + var RateLimitRequestTotal = metricDesc + var RouterGaugeNames []string = []string + var UpstreamRequestDelay = metricDesc + var UpstreamRequestMaxTimeout = metricDesc + var UpstreamRequestSuccess = metricDesc + var UpstreamRequestTimeout = metricDesc + var UpstreamRequestTotal = metricDesc + func GetLabels(m map[string]LabelValueSupplier) []string + type Config struct + IP string + Port int + PortStr string + func (c *Config) SetDefault() + func (c *Config) Verify() error + type LabelValueSupplier func(val interface{}) string + type MetricsType int + const TypeForCounterVec + const TypeForGauge + const TypeForGaugeVec + const TypeForHistogramVec + const TypeForMaxGaugeVec + type PrometheusHandler struct + func (p *PrometheusHandler) Close() error + func (p *PrometheusHandler) GetHttpHandler() http.Handler + func (p *PrometheusHandler) ReportStat(metricsType model.MetricType, metricsVal model.InstanceGauge) error + type PrometheusReporter struct + func (g *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(metricType model.MetricType, metricsVal model.InstanceGauge) error + func (s *PrometheusReporter) Type() common.Type