metrics

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "tidb2dw"
)

Variables

View Source
var (
	TableNumGauge              prometheus.Gauge
	SnapshotTotalSizeCounter   *prometheus.CounterVec
	SnapshotLoadedSizeCounter  *prometheus.CounterVec
	IncrementPendingSizeGauge  *prometheus.GaugeVec
	IncrementLoadedSizeCounter *prometheus.CounterVec
	TableVersionsCounter       *prometheus.CounterVec
	ErrorCounter               *prometheus.CounterVec
)

Functions

func AddCounter

func AddCounter(counterVec *prometheus.CounterVec, v float64, table string)

AddCounter adds a counter for a specific table.

func AddGauge

func AddGauge(gaugeVec *prometheus.GaugeVec, v float64, table string)

AddGauge adds a gauge for a specific table.

func ReadCounter

func ReadCounter(counterVec *prometheus.CounterVec, table string) float64

ReadCounter reports the current value of the counter for a specific table.

func ReadGauge

func ReadGauge(gaugeVec *prometheus.GaugeVec, table string) float64

ReadGauge reports the current value of the gauge for a specific table.

func Register

func Register()

func SubGauge

func SubGauge(gaugeVec *prometheus.GaugeVec, v float64, table string)

SubGauge subs a gauge for a specific table.

Types

This section is empty.

Jump to

Keyboard shortcuts

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