metrics

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionName

type ActionName string

type IMetrics

type IMetrics struct {
	Counters   PromCounterVecActions
	Gauges     PromGaugeVecActions
	Histograms PromHistogramVecActions
}

func (*IMetrics) CounterVec

func (m *IMetrics) CounterVec(name ActionName) (*prometheus.CounterVec, error)

func (*IMetrics) GaugeVec

func (m *IMetrics) GaugeVec(name ActionName) (*prometheus.GaugeVec, error)

func (*IMetrics) HistogramVec

func (m *IMetrics) HistogramVec(name ActionName) (*prometheus.HistogramVec, error)

func (*IMetrics) Registry

func (m *IMetrics) Registry()

type Metrics

type Metrics interface {
	Registry()
	CounterVec(name ActionName) (*prometheus.CounterVec, error)
	GaugeVec(name ActionName) (*prometheus.GaugeVec, error)
	HistogramVec(name ActionName) (*prometheus.HistogramVec, error)
}

type PromCounterVecAction

type PromCounterVecAction struct {
	Name    ActionName
	Counter prometheus.CounterVec
}

type PromCounterVecActions

type PromCounterVecActions []PromCounterVecAction

func (PromCounterVecActions) Get

type PromGaugeVecAction

type PromGaugeVecAction struct {
	Name  ActionName
	Gauge prometheus.GaugeVec
}

type PromGaugeVecActions

type PromGaugeVecActions []PromGaugeVecAction

func (PromGaugeVecActions) Get

type PromHistogramVecAction

type PromHistogramVecAction struct {
	Name      ActionName
	Histogram prometheus.HistogramVec
}

type PromHistogramVecActions

type PromHistogramVecActions []PromHistogramVecAction

func (PromHistogramVecActions) Get

Jump to

Keyboard shortcuts

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