metrics

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 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 Counter

type Counter interface {
	Inc()
	Add(float64)
}

Counter represents a counter metric

type CounterVec

type CounterVec interface {
	WithLabelValues(lvs ...string) Counter
}

CounterVec represents a vector of labelled counters

type Gauge

type Gauge interface {
	Set(float64)
	Add(float64)
}

Gauge represents a gauge metric

type GaugeVec

type GaugeVec interface {
	WithLabelValues(lvs ...string) Gauge
}

GaugeVec represents a vector of labelled gauges

type Histogram

type Histogram interface {
	Observe(float64)
}

Histogram represents a histogram metric

type StubCounter added in v0.1.21

type StubCounter struct {
}

StubCounter is a stub of Counter interface

func NewStubCounter added in v0.1.21

func NewStubCounter() *StubCounter

NewStubCounter creates a new stub instance

func (*StubCounter) Add added in v0.1.21

func (m *StubCounter) Add(arg0 float64)

Add stubs base method

func (*StubCounter) Inc added in v0.1.21

func (m *StubCounter) Inc()

Inc stubs base method

type StubCounterVec added in v0.1.21

type StubCounterVec struct {
}

StubCounterVec is a stub of CounterVec interface

func NewStubCounterVec added in v0.1.21

func NewStubCounterVec() *StubCounterVec

NewStubCounterVec creates a new stub instance

func (*StubCounterVec) WithLabelValues added in v0.1.21

func (m *StubCounterVec) WithLabelValues(lvs ...string) Counter

WithLabelValues stubs base method

type StubGauge added in v0.1.21

type StubGauge struct {
}

StubGauge is a stub of Gauge interface

func NewStubGauge added in v0.1.21

func NewStubGauge() *StubGauge

NewStubGauge creates a new stub instance

func (*StubGauge) Add added in v0.1.21

func (m *StubGauge) Add(arg0 float64)

Add stubs base method

func (*StubGauge) Set added in v0.1.21

func (m *StubGauge) Set(arg0 float64)

Set stubs base method

type StubGaugeVec added in v0.1.21

type StubGaugeVec struct {
}

StubGaugeVec is a stub of GaugeVec interface

func NewStubGaugeVec added in v0.1.21

func NewStubGaugeVec() *StubGaugeVec

NewStubGaugeVec creates a new stub instance

func (*StubGaugeVec) WithLabelValues added in v0.1.21

func (m *StubGaugeVec) WithLabelValues(lvs ...string) Gauge

WithLabelValues stubs base method

type StubHistogram added in v0.1.23

type StubHistogram struct {
}

StubHistogram is a stub of Histogram interface

func NewStubHistogram added in v0.1.23

func NewStubHistogram() *StubHistogram

NewStubHistogram creates a new stub instance

func (*StubHistogram) Observe added in v0.1.23

func (m *StubHistogram) Observe(arg0 float64)

Observe stubs base method

type StubHistogramVec added in v0.1.23

type StubHistogramVec struct {
}

StubHistogramVec is a stub of HistogramVec interface

func NewHistogramVec added in v0.1.23

func NewHistogramVec() *StubHistogramVec

NewHistogramVec creates a new stub instance

func (*StubHistogramVec) WithLabelValues added in v0.1.23

func (m *StubHistogramVec) WithLabelValues(lvs ...string) Histogram

WithLabelValues stubs base method

type WrappedCounterVec

type WrappedCounterVec struct {
	// contains filtered or unexported fields
}

WrappedCounterVec wraps a prometheus CounterVec

func NewWrappedCounterVec

func NewWrappedCounterVec(opts prometheus.CounterOpts, labelNames []string) *WrappedCounterVec

NewWrappedCounterVec creates a prometheus CounterVec that is wrapped

func (*WrappedCounterVec) WithLabelValues

func (wG *WrappedCounterVec) WithLabelValues(lvs ...string) Counter

WithLabelValues implements the WithLabelValues to meet the CounterVec interface

type WrappedGaugeVec

type WrappedGaugeVec struct {
	// contains filtered or unexported fields
}

WrappedGaugeVec wraps a prometheus GaugeVec

func NewWrappedGaugeVec

func NewWrappedGaugeVec(opts prometheus.GaugeOpts, labelNames []string) *WrappedGaugeVec

NewWrappedGaugeVec creates a prometheus GaugeVec that is wrapped

func (*WrappedGaugeVec) WithLabelValues

func (wG *WrappedGaugeVec) WithLabelValues(lvs ...string) Gauge

WithLabelValues implements the WithLabelValues to meet the GaugeVec interface

Jump to

Keyboard shortcuts

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