monitoring

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRingPopStatsD

func GetRingPopStatsD(conf *conf.StatsdConfig) bark.StatsReporter

Types

type Monitor

type Monitor interface {
	IncCounter(name string, labels map[string]string, value int)
	RecordTiming(name string, labels map[string]string, duration time.Duration)
}

type PrometheusMonitor

type PrometheusMonitor struct {
	Counters   map[string]*prometheus.CounterVec
	Histograms map[string]*prometheus.HistogramVec
	Mu         sync.RWMutex
}

func NewPrometheusMonitor

func NewPrometheusMonitor() *PrometheusMonitor

func (*PrometheusMonitor) IncCounter

func (p *PrometheusMonitor) IncCounter(name string, labels map[string]string, value int)

func (*PrometheusMonitor) RecordTiming

func (p *PrometheusMonitor) RecordTiming(name string, labels map[string]string, duration time.Duration)

Jump to

Keyboard shortcuts

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