Documentation
¶
Index ¶
- Constants
- Variables
- func AddCounter(counterVec *prometheus.CounterVec, v float64, table string)
- func AddGauge(gaugeVec *prometheus.GaugeVec, v float64, table string)
- func ReadCounter(counterVec *prometheus.CounterVec, table string) float64
- func ReadGauge(gaugeVec *prometheus.GaugeVec, table string) float64
- func Register()
- func SubGauge(gaugeVec *prometheus.GaugeVec, v float64, table string)
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.