metric

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric interface {
	InsertOpIncrement(count int64)
	UpdateOpIncrement(count int64)
	DeleteOpIncrement(count int64)
	SetCDCLatency(latency int64)
	SetProcessLatency(latency int64)
	SetSlotActivity(active bool)
	SetSlotCurrentLSN(lsn float64)
	SetSlotConfirmedFlushLSN(lsn float64)
	SetSlotRetainedWALSize(lsn float64)
	SetSlotLag(lsn float64)

	PrometheusCollectors() []prometheus.Collector
}

func NewMetric

func NewMetric(slotName string) Metric

type Registry

type Registry interface {
	AddMetricCollectors(metricCollectors ...prometheus.Collector)
	Prometheus() *prometheus.Registry
}

func NewRegistry

func NewRegistry(m Metric) Registry

Jump to

Keyboard shortcuts

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