Documentation ¶
Index ¶
Constants ¶
View Source
const HTMLTemplate = `` /* 3014-byte string literal not displayed */
Variables ¶
View Source
var DefaultSorter = func(i, j string) bool { return strings.Compare(i, j) < 0 }
Functions ¶
Types ¶
type Metric ¶
Metric is a single meter (counter, gauge or histogram, optionally - with history)
func LoadMetricJSON ¶
func NewCounter ¶
NewCounter returns a counter metric that increments the value with each incoming number.
func NewGauge ¶
NewGauge returns a gauge metric that sums up the incoming values and returns mean/min/max of the resulting distribution.
func NewHistogram ¶
NewHistogram returns a histogram metric that calculates 50%, 90% and 99% percentiles of the incoming numbers.
Click to show internal directories.
Click to hide internal directories.