Documentation
¶
Index ¶
Constants ¶
View Source
const (
Namespace = `dx`
)
Variables ¶
View Source
var ( // TimeBucketsFast suits if expected response time is very high: 1ms..100ms // This buckets suits for cache storages (in-memory cache, Memcache) TimeBucketsFast = []float64{0.001, 0.003, 0.007, 0.015, 0.05, 0.1, 0.2, 0.5, 1, 2, 5} // TimeBucketsMedium suits for most of GO APIs, where response time is between 50ms..500ms. // Works for wide range of systems because provides near-logarithmic buckets distribution. TimeBucketsMedium = []float64{0.001, 0.005, 0.015, 0.05, 0.1, 0.25, 0.5, 0.75, 1, 1.5, 2, 3.5, 5} // TimeBucketsExtended suits for GO APIs that have long-duration response, where response time is between 50ms..30000ms. TimeBucketsExtended = []float64{0.001, 0.005, 0.015, 0.05, 0.1, 0.25, 0.5, 0.75, 1, 1.5, 2, 3.5, 5, 7, 10, 15, 30} // TimeBucketsSlow suits for relatively slow services, where expected response time is > 500ms. TimeBucketsSlow = []float64{0.05, 0.1, 0.2, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.5, 3, 4, 5} )
Functions ¶
func NewGoDBStatsCollector ¶
func NewGoDBStatsCollector(dbname string, g GoDBStatsGetter) prometheus.Collector
Types ¶
type GoDBStatsGetter ¶
Click to show internal directories.
Click to hide internal directories.