Documentation ¶
Overview ¶
Go port of Coda Hale's Metrics library
<https://github.com/rcrowley/go-metrics>
Coda Hale's original work: <https://github.com/codahale/metrics>
Index ¶
- Constants
- func EnableMetrics()
- func Export()
- func NewCounter(name string) metrics.Counter
- func NewGauge(name string) metrics.Gauge
- func NewHistogramWithUniformSample(name string, reservoirSize int) metrics.Histogram
- func NewMeter(name string) metrics.Meter
- func NewNilMeter() metrics.Meter
- func NewTimer(name string) metrics.Timer
- func StartInfluxDB(hostname, database, username, password string, tags map[string]string)
Constants ¶
View Source
const (
// MetricsEnabledFlag metrics enable flag
MetricsEnabledFlag = "metrics"
)
Variables ¶
This section is empty.
Functions ¶
func NewCounter ¶
func NewCounter(name string) metrics.Counter
NewCounter create a new metrics Counter
func NewHistogramWithUniformSample ¶
NewHistogramWithUniformSample create a new metrics History with Uniform Sample algorithm.
func NewNilMeter ¶
func NewNilMeter() metrics.Meter
func StartInfluxDB ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.