Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterVec ¶
CounterVec represents a vector of labelled counters
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
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
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