Documentation
¶
Overview ¶
Package metrics aids in defining Prometheus metrics.
Index ¶
- type Registry
- func (mr Registry) NewCounter(c prometheus.CounterOpts) prometheus.Counter
- func (mr *Registry) NewGauge(g prometheus.GaugeOpts) prometheus.Gauge
- func (mr *Registry) NewHistogram(h prometheus.HistogramOpts) prometheus.Histogram
- func (mr *Registry) NewSummary(s prometheus.SummaryOpts) prometheus.Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
R prometheus.Registerer
}
Registry encapsulates metrics creation and registration
func (Registry) NewCounter ¶
func (mr Registry) NewCounter(c prometheus.CounterOpts) prometheus.Counter
NewCounter returns a new created and registered Prometheus Counter
func (*Registry) NewGauge ¶
func (mr *Registry) NewGauge(g prometheus.GaugeOpts) prometheus.Gauge
NewGauge returns a new created and registered Prometheus Gauge
func (*Registry) NewHistogram ¶
func (mr *Registry) NewHistogram(h prometheus.HistogramOpts) prometheus.Histogram
NewHistogram returns a new and registered Prometheus Histogram
func (*Registry) NewSummary ¶
func (mr *Registry) NewSummary(s prometheus.SummaryOpts) prometheus.Summary
NewSummary returns a new and registered Prometheus Summary