Versions in this module Expand all Collapse all v4 v4.4.4 Jul 19, 2022 v4.4.3 Jul 18, 2022 v4.4.2 Jul 18, 2022 Changes in this version + func ReverseLabelledPath(path string) (name string, tagNames, tagValues []string) + type CloudWatchConfig struct + FlushPeriod string + Namespace string + func NewCloudWatchConfig() CloudWatchConfig + type Config struct + AWSCloudWatch CloudWatchConfig + InfluxDB InfluxDBConfig + JSONAPI JSONAPIConfig + Logger LoggerConfig + Mapping string + None struct{} + Plugin interface{} + Prometheus PrometheusConfig + Statsd StatsdConfig + Type string + func NewConfig() Config + func (conf *Config) UnmarshalYAML(value *yaml.Node) error + type DudStat struct + func (d DudStat) Decr(count int64) + func (d DudStat) Incr(count int64) + func (d DudStat) Set(value int64) + func (d DudStat) Timing(delta int64) + type DudType struct + ID int + func (d DudType) Close() error + func (d DudType) GetCounter(path string) StatCounter + func (d DudType) GetCounterVec(path string, n ...string) StatCounterVec + func (d DudType) GetGauge(path string) StatGauge + func (d DudType) GetGaugeVec(path string, n ...string) StatGaugeVec + func (d DudType) GetTimer(path string) StatTimer + func (d DudType) GetTimerVec(path string, n ...string) StatTimerVec + func (d DudType) HandlerFunc() http.HandlerFunc + type InfluxDBConfig struct + DB string + Include InfluxDBInclude + Interval string + Password string + PingInterval string + Precision string + RetentionPolicy string + TLS btls.Config + Tags map[string]string + Timeout string + URL string + Username string + WriteConsistency string + func NewInfluxDBConfig() InfluxDBConfig + type InfluxDBInclude struct + DebugGC string + Runtime string + type JSONAPIConfig struct + func NewJSONAPIConfig() JSONAPIConfig + type Local struct + func NewLocal() *Local + func (l *Local) Close() error + func (l *Local) FlushCounters() map[string]int64 + func (l *Local) FlushTimings() map[string]metrics.Timer + func (l *Local) GetCounter(path string) StatCounter + func (l *Local) GetCounterVec(path string, k ...string) StatCounterVec + func (l *Local) GetCounters() map[string]int64 + func (l *Local) GetGauge(path string) StatGauge + func (l *Local) GetGaugeVec(path string, k ...string) StatGaugeVec + func (l *Local) GetTimer(path string) StatTimer + func (l *Local) GetTimerVec(path string, k ...string) StatTimerVec + func (l *Local) GetTimings() map[string]metrics.Timer + func (l *Local) HandlerFunc() http.HandlerFunc + type LocalStat struct + Value *int64 + func (l *LocalStat) Decr(count int64) + func (l *LocalStat) Incr(count int64) + func (l *LocalStat) Set(value int64) + type LocalTiming struct + func (l *LocalTiming) Timing(delta int64) + type LoggerConfig struct + FlushMetrics bool + PushInterval string + func NewLoggerConfig() LoggerConfig + type Mapping struct + func NewMapping(mapping string, logger log.Modular) (*Mapping, error) + func (m *Mapping) WithStaticVars(kvs map[string]interface{}) *Mapping + type Namespaced struct + func NewNamespaced(child Type) *Namespaced + func Noop() *Namespaced + func (n *Namespaced) Child() Type + func (n *Namespaced) Close() error + func (n *Namespaced) GetCounter(path string) StatCounter + func (n *Namespaced) GetCounterVec(path string, labelNames ...string) StatCounterVec + func (n *Namespaced) GetGauge(path string) StatGauge + func (n *Namespaced) GetGaugeVec(path string, labelNames ...string) StatGaugeVec + func (n *Namespaced) GetTimer(path string) StatTimer + func (n *Namespaced) GetTimerVec(path string, labelNames ...string) StatTimerVec + func (n *Namespaced) HandlerFunc() http.HandlerFunc + func (n *Namespaced) WithLabels(labels ...string) *Namespaced + func (n *Namespaced) WithMapping(m *Mapping) *Namespaced + func (n *Namespaced) WithStats(s Type) *Namespaced + type PrometheusConfig struct + AddGoMetrics bool + AddProcessMetrics bool + FileOutputPath string + HistogramBuckets []float64 + PushBasicAuth PrometheusPushBasicAuthConfig + PushInterval string + PushJobName string + PushURL string + UseHistogramTiming bool + func NewPrometheusConfig() PrometheusConfig + type PrometheusPushBasicAuthConfig struct + Password string + Username string + func NewPrometheusPushBasicAuthConfig() PrometheusPushBasicAuthConfig + type StatCounter interface + Incr func(count int64) + type StatCounterVec interface + With func(labelValues ...string) StatCounter + func FakeCounterVec(f func(...string) StatCounter) StatCounterVec + type StatGauge interface + Decr func(count int64) + Incr func(count int64) + Set func(value int64) + type StatGaugeVec interface + With func(labelValues ...string) StatGauge + func FakeGaugeVec(f func(...string) StatGauge) StatGaugeVec + type StatTimer interface + Timing func(delta int64) + type StatTimerVec interface + With func(labelValues ...string) StatTimer + func FakeTimerVec(f func(...string) StatTimer) StatTimerVec + type StatsdConfig struct + Address string + FlushPeriod string + TagFormat string + func NewStatsdConfig() StatsdConfig + type Type interface + Close func() error + GetCounter func(path string) StatCounter + GetCounterVec func(path string, labelNames ...string) StatCounterVec + GetGauge func(path string) StatGauge + GetGaugeVec func(path string, labelNames ...string) StatGaugeVec + GetTimer func(path string) StatTimer + GetTimerVec func(path string, labelNames ...string) StatTimerVec + HandlerFunc func() http.HandlerFunc + func Combine(t1, t2 Type) Type