Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCustomMetricsRegistry ¶
func NewCustomMetricsRegistry() *customMetricsRegistry
Types ¶
type CounterVec ¶
type CounterVec interface { // Inc increments labels. Inc(labels ...string) // Add adds labels with v. Add(v float64, labels ...string) }
CounterVec interface represents a counter vector.
func NewCounterVec ¶
func NewCounterVec(reg prom.Registerer, cfg *CounterVecOpts) CounterVec
NewCounterVec returns a CounterVec.
type GaugeVec ¶
type GaugeVec interface { // Set sets v to labels. Set(v float64, labels ...string) // Inc increments labels. Inc(labels ...string) // Add adds v to labels. Add(v float64, labels ...string) }
GaugeVec represents a gauge vector.
func NewGaugeVec ¶
func NewGaugeVec(reg prom.Registerer, cfg *GaugeVecOpts) GaugeVec
NewGaugeVec returns a GaugeVec.
type HistogramVec ¶
type HistogramVec interface { // Observe adds observation v to labels. Observe(v int64, labels ...string) }
A HistogramVec interface represents a histogram vector.
func NewHistogramVec ¶
func NewHistogramVec(reg prom.Registerer, cfg *HistogramVecOpts) HistogramVec
NewHistogramVec returns a HistogramVec.
Click to show internal directories.
Click to hide internal directories.