Documentation
¶
Index ¶
- type Gauge
- type Histogram
- type Rate
- type Registry
- func (r *Registry) CreateSubRegistry(name string) *Registry
- func (r *Registry) GetMetricsRegistry() metrics.Registry
- func (r *Registry) RegisterGauge(name string, gauge *Gauge, units string) error
- func (r *Registry) RegisterHistogram(name string, histogram *Histogram, units string) error
- func (r *Registry) RegisterRate(name string, rate *Rate) error
- func (r *Registry) RegisterTimer(name string, timer *Timer) error
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge hold an int64 value that can be set arbitrarily
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram calculate distribution statistics from a series of int64 values.
type Rate ¶
type Rate struct {
// contains filtered or unexported fields
}
Rate tracks the rate of values per second
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a registry of all metrics
func NewRegistry ¶
NewRegistry creates a new Registry. name parameter is used as a root node name
func (*Registry) CreateSubRegistry ¶
CreateSubRegistry creates inner Registry with the give name.
func (*Registry) GetMetricsRegistry ¶
GetMetricsRegistry returns global registry of metrics used in the solution
func (*Registry) RegisterGauge ¶
RegisterGauge registers a new gauge under the given name or returns an error
func (*Registry) RegisterHistogram ¶
RegisterHistogram registers a new histogram under the given name or returns an error
func (*Registry) RegisterRate ¶
RegisterRate registers a new rate metric or returns an error