Versions in this module Expand all Collapse all v1 v1.0.1 Dec 3, 2021 Changes in this version + const CounterAdd + const CounterInc + const ErrCounterActionRequired + const ErrCounterInvalidAction + const ErrCounterInvalidCountBytes + const ErrCounterInvalidCountBytesAction + const ErrCounterInvalidMatchAll + const ErrGaugeActionRequired + const ErrGaugeInvalidAction + const GaugeAdd + const GaugeDec + const GaugeInc + const GaugeSet + const GaugeSub + type CounterConfig struct + Action string + CountBytes *bool + MatchAll *bool + Value *string + type Counters struct + Cfg *CounterConfig + func NewCounters(name, help string, config interface{}, maxIdleSec int64) (*Counters, error) + func (c *Counters) With(labels model.LabelSet) prometheus.Counter + func (c Counters) Collect(ch chan<- prometheus.Metric) + func (c Counters) Delete(labels model.LabelSet) bool + func (c Counters) Describe(ch chan<- *prometheus.Desc) + type Expirable interface + HasExpired func(currentTimeSec int64, maxAgeSec int64) bool + type GaugeConfig struct + Action string + Value *string + type Gauges struct + Cfg *GaugeConfig + func NewGauges(name, help string, config interface{}, maxIdleSec int64) (*Gauges, error) + func (c Gauges) Collect(ch chan<- prometheus.Metric) + func (c Gauges) Delete(labels model.LabelSet) bool + func (c Gauges) Describe(ch chan<- *prometheus.Desc) + func (g *Gauges) With(labels model.LabelSet) prometheus.Gauge + type HistogramConfig struct + Buckets []float64 + Value *string + type Histograms struct + Cfg *HistogramConfig + func NewHistograms(name, help string, config interface{}, maxIdleSec int64) (*Histograms, error) + func (c Histograms) Collect(ch chan<- prometheus.Metric) + func (c Histograms) Delete(labels model.LabelSet) bool + func (c Histograms) Describe(ch chan<- *prometheus.Desc) + func (h *Histograms) With(labels model.LabelSet) prometheus.Histogram