Documentation
¶
Overview ¶
Package metrics facilitates writing unit tests by allowing the test to read back the value set in a Prometheus metrics
Index ¶
- func LoadValue(metricName string, labels ...string) (float64, error)deprecated
- func NewCounter(opts prometheus.CounterOpts) prometheus.Counterdeprecated
- func NewCounterVec(opts prometheus.CounterOpts, labels []string) *prometheus.CounterVecdeprecated
- func NewGauge(opts prometheus.GaugeOpts) prometheus.Gaugedeprecated
- func NewGaugeVec(opts prometheus.GaugeOpts, labels []string) *prometheus.GaugeVecdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCounter
deprecated
added in
v0.2.0
func NewCounter(opts prometheus.CounterOpts) prometheus.Counter
NewCounter returns a new Prometheus Counter, created through promauto
Deprecated: this will be removed in a subsequent version
func NewCounterVec
deprecated
added in
v0.2.0
func NewCounterVec(opts prometheus.CounterOpts, labels []string) *prometheus.CounterVec
NewCounterVec returns a new Prometheus CounterVec, created through promauto
Deprecated: this will be removed in a subsequent version
func NewGauge
deprecated
func NewGauge(opts prometheus.GaugeOpts) prometheus.Gauge
NewGauge returns a new Prometheus Gauge, created through promauto
Deprecated: this will be removed in a subsequent version
func NewGaugeVec
deprecated
func NewGaugeVec(opts prometheus.GaugeOpts, labels []string) *prometheus.GaugeVec
NewGaugeVec returns a new Prometheus GaugeVec, created through promauto
Deprecated: this will be removed in a subsequent version
Types ¶
This section is empty.