Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
Counter is the most basic and default metric type. It is treated as a count of a type of event per second and are typically averaged over on minute. That is, when looking at a graph, you are usually seeing the average number of events per second during a one-minute period.
type Gauge ¶
Gauge is a constant metric type. Gauges are not subject to averaging and do not change unless they are changed. That is, once a gauge value is set, it will be a flat line on the graph until it is changed again.
Examples: system load, active WebSocket connections
type Tag ¶
Tag is a key-value pair which can be associated with a metric in order to add additional information.
type TimeHistogram ¶
type TimeHistogram interface { With(Tag) TimeHistogram Observe(d time.Duration) }
TimeHistogram calculate the statistical distribution of any kind of value over time. An example of a histogram is the request latency.