Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultFactory ¶
func SetDefaultFactory(factory Factory)
Types ¶
type Counter ¶
Counter describes a metric that accumulates values monotonically. An example of a counter is the number of received HTTP requests.
var NullCounter Counter = &nullCounter{}
type Factory ¶
type Factory interface { Counter(metric Options) Counter Gauge(metric Options) Gauge Histogram(metric HistogramOptions) Histogram }
Factory creates new metrics
var DefaultFactory Factory = NullFactory
var NullFactory Factory = &nullFactory{}
type Gauge ¶
Gauge describes a metric that takes specific values over time. An example of a gauge is the current depth of a job queue.
var NullGauge Gauge = &nullGauge{}
type Histogram ¶
Histogram describes a metric that takes repeated observations of the same kind of thing, and produces a statistical summary of those observations, typically expressed as quantiles or buckets. An example of a histogram is HTTP request latencies.
var NullSummary Histogram = &nullSummary{}
type HistogramOptions ¶
HistogramOptions defines the information associated with a metric
Click to show internal directories.
Click to hide internal directories.