Documentation
¶
Overview ¶
Package collect throughput and response times using Go-Kit Metrics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Measure ¶
// Measure adds a measurement to a histogram collection
func Measure(h *generic.Histogram, d time.Duration) { if h != nil && archaius.Conf.Collect { if d > maxHistObservable { h.Observe(float64(maxHistObservable)) } else { h.Observe(float64(d)) } sampleLock.Lock() s := sampleMap[h] if s != nil && len(s) < sampleCount { sampleMap[h] = append(s, int64(d)) sampleLock.Unlock() } } }
Types ¶
type ArchObject ¶
type ArchObject struct { Arch string `json:"arch"` Version string `json:"version"` Args string `json:"args"` Services []struct { Name string `json:"name"` Package string `json:"package"` Regions int `json:"regions"` Count int `json:"count"` Dependencies []string `json:"dependencies"` UseCustomGuesstimate bool `json:"useCustomGuesstimate,omitempty"` GuesstimateType string `json:"guesstimateType,omitempty"` GuesstimateValue string `json:"guesstimateValue,omitempty"` } `json:"services"` }
Click to show internal directories.
Click to hide internal directories.