Documentation ¶
Overview ¶
Package metrics contains utilities to assist with exposing Prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterVec ¶
type CounterVec interface { // With returns a counter with the supplied labels. With(prometheus.Labels) prometheus.Counter }
CounterVec is a a subset of the functionality of a prometheus.CounterVec.
type NopCounter ¶
type NopCounter struct {
prometheus.Counter
}
A NopCounter is a no-op implementation of a Prometheus counter.
type NopCounterVec ¶
type NopCounterVec struct {
CounterVec
}
A NopCounterVec is a no-op implementation of CounterVec.
func (*NopCounterVec) With ¶
func (v *NopCounterVec) With(_ prometheus.Labels) prometheus.Counter
With returns its underlying CounterVec.
Click to show internal directories.
Click to hide internal directories.