Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + type CirconusMetrics struct + Debug bool + Log *log.Logger + func New(cfg *Config) (*CirconusMetrics, error) + func NewCirconusMetrics(cfg *Config) (*CirconusMetrics, error) + func (m *CirconusMetrics) Add(metric string, val uint64) + func (m *CirconusMetrics) AddGauge(metric string, val interface{}) + func (m *CirconusMetrics) AddMetricTags(name string, tags []string) bool + func (m *CirconusMetrics) Flush() + func (m *CirconusMetrics) FlushMetrics() *Metrics + func (m *CirconusMetrics) Gauge(metric string, val interface{}) + func (m *CirconusMetrics) GetCounterTest(metric string) (uint64, error) + func (m *CirconusMetrics) GetGaugeTest(metric string) (interface{}, error) + func (m *CirconusMetrics) GetHistogramTest(metric string) ([]string, error) + func (m *CirconusMetrics) Increment(metric string) + func (m *CirconusMetrics) IncrementByValue(metric string, val uint64) + func (m *CirconusMetrics) NewHistogram(metric string) *Histogram + func (m *CirconusMetrics) PromOutput() (*bytes.Buffer, error) + func (m *CirconusMetrics) Ready() bool + func (m *CirconusMetrics) RecordCountForValue(metric string, val float64, n int64) + func (m *CirconusMetrics) RecordValue(metric string, val float64) + func (m *CirconusMetrics) RemoveCounter(metric string) + func (m *CirconusMetrics) RemoveCounterFunc(metric string) + func (m *CirconusMetrics) RemoveGauge(metric string) + func (m *CirconusMetrics) RemoveGaugeFunc(metric string) + func (m *CirconusMetrics) RemoveHistogram(metric string) + func (m *CirconusMetrics) RemoveText(metric string) + func (m *CirconusMetrics) RemoveTextFunc(metric string) + func (m *CirconusMetrics) Reset() + func (m *CirconusMetrics) Set(metric string, val uint64) + func (m *CirconusMetrics) SetCounterFunc(metric string, fn func() uint64) + func (m *CirconusMetrics) SetGauge(metric string, val interface{}) + func (m *CirconusMetrics) SetGaugeFunc(metric string, fn func() int64) + func (m *CirconusMetrics) SetHistogramValue(metric string, val float64) + func (m *CirconusMetrics) SetMetricTags(name string, tags []string) bool + func (m *CirconusMetrics) SetText(metric string, val string) + func (m *CirconusMetrics) SetTextFunc(metric string, fn func() string) + func (m *CirconusMetrics) SetTextValue(metric string, val string) + func (m *CirconusMetrics) Start() + func (m *CirconusMetrics) Timing(metric string, val float64) + func (m *CirconusMetrics) TrackHTTPLatency(name string, handler func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request) + type Config struct + CheckManager checkmgr.Config + Debug bool + Interval string + Log *log.Logger + ResetCounters string + ResetGauges string + ResetHistograms string + ResetText string + type Histogram struct + func (h *Histogram) Name() string + func (h *Histogram) RecordValue(v float64) + type Metric struct + Type string + Value interface{} + type Metrics map[string]Metric