Versions in this module Expand all Collapse all v0 v0.1.0 Jun 3, 2019 Changes in this version + const CounterAdd + const CounterInc + const ErrCounterActionRequired + const ErrCounterInvalidAction + const ErrGaugeActionRequired + const ErrGaugeInvalidAction + const GaugeAdd + const GaugeDec + const GaugeInc + const GaugeSet + const GaugeSub + func LogSize(reg prometheus.Registerer, next api.EntryHandler) api.EntryHandler + type CounterConfig struct + Action string + Value *string + type Counters struct + Cfg *CounterConfig + func NewCounters(name, help string, config interface{}) (*Counters, error) + func (c *Counters) With(labels model.LabelSet) prometheus.Counter + func (c Counters) Collect(ch chan<- prometheus.Metric) + func (c Counters) Describe(ch chan<- *prometheus.Desc) + type GaugeConfig struct + Action string + Value *string + type Gauges struct + Cfg *GaugeConfig + func NewGauges(name, help string, config interface{}) (*Gauges, error) + func (c Gauges) Collect(ch chan<- prometheus.Metric) + 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{}) (*Histograms, error) + func (c Histograms) Collect(ch chan<- prometheus.Metric) + func (c Histograms) Describe(ch chan<- *prometheus.Desc) + func (h *Histograms) With(labels model.LabelSet) prometheus.Histogram