Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMetricsInitRegistryError = fmt.Errorf("metrics: can not init metrics registry") ErrMetricsDoNotExist = fmt.Errorf("metrics: metrics do not exists") ErrMetricsIsDuplicated = fmt.Errorf("metrics: metric is duplicated") )
View Source
var DefaultTallyBuckets = tally.ValueBuckets{.01, .05, .1, .2, .5, .8, .9, 1, 5, 10, 15, 30, 60, 90, 120}
Functions ¶
func DefaultRegistry ¶
func DefaultRegistry() prometheus.Registerer
默认prometheus.DefaultRegisterer, 没有特殊需要,不用使用NewRegisterer
Types ¶
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
func (*Stats) IncrAllCount ¶
func (*Stats) IncrHitCount ¶
Click to show internal directories.
Click to hide internal directories.