metrics

package
v1.87.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gauge

type Gauge interface {
	Inc()
	Dec()
}

Gauge is a subset of a prometheus Gauge

func RegisterReplicationJobsInFlight

func RegisterReplicationJobsInFlight() (Gauge, error)

RegisterReplicationJobsInFlight creates and registers a gauge to track the size of the replication queue

type Histogram

type Histogram interface {
	Observe(float64)
}

Histogram is a subset of a prometheus Histogram

func RegisterReplicationLatency

func RegisterReplicationLatency(conf promconfig.Config) (Histogram, error)

RegisterReplicationLatency creates and registers a prometheus histogram to observe replication latency times

Jump to

Keyboard shortcuts

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