metrics

package
v0.0.0-...-db13635 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetaServer    string = "meta"
	ReplicaServer string = "replica"
)

Variables

View Source
var CounterMetricsMap map[string]prometheus.CounterVec
View Source
var GaugeMetricsMap map[string]prometheus.GaugeVec
View Source
var SummaryMetricsMap map[string]prometheus.Summary
View Source
var TableNameByID map[string]string

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func (*Collector) Run

func (collector *Collector) Run(tom *tomb.Tomb) error

type Metric

type Metric struct {
	// contains filtered or unexported fields
}

type MetricCollector

type MetricCollector interface {
	Run(tom *tomb.Tomb) error
}

func NewMetaServerMetricCollector

func NewMetaServerMetricCollector() MetricCollector

func NewMetricCollector

func NewMetricCollector(
	role string,
	detectInterval time.Duration,
	detectTimeout time.Duration) MetricCollector

func NewReplicaServerMetricCollector

func NewReplicaServerMetricCollector() MetricCollector

type Metrics

type Metrics []Metric

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL