Documentation
¶
Overview ¶
Package metrics facilitate writing unit tests by allowing the test to read back the value set in a Prometheus metrics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadValue ¶
LoadValue gets the last value reported so unit tests can verify the correct value was reported
func NewGauge ¶
func NewGauge(opts prometheus.GaugeOpts) prometheus.Gauge
NewGauge returns a new Prometheus Gauge, created through promauto
func NewGaugeVec ¶
func NewGaugeVec(opts prometheus.GaugeOpts, labels []string) *prometheus.GaugeVec
NewGaugeVec returns a new Prometheus GaugeVec, created through promauto
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.