Documentation ¶
Overview ¶
Package monitor provides an embedded HTTP server to expose metrics for monitoring
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram contains the data needed to properly export itself to expvar and provide a pretty printed version
func NewHistogram ¶
func NewHistogram(name string, numBuckets int, growth float64, smallest float64, minValue int64) *Histogram
NewHistogram creates a new histogram and registers an HTTP handler for it. "name" must end with "Histogram", so that the "/debug/latency" handler can pretty print it.
func (*Histogram) UpdateLatencyValues ¶
UpdateLatencyValues updates the stats.Histogram's buckets with the new datapoint and updates the string associated with the expvar.String
Click to show internal directories.
Click to hide internal directories.