Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counter ¶
type Counter interface { // Inc increments the Counter by a delta. Inc(delta int64) }
Counter is the interface for emitting Counter type metrics.
type Gauge ¶
type Gauge interface { // Update sets the gauges absolute value. Update(value float64) }
Gauge is the interface for emitting Gauge metrics.
type Opts ¶
type Opts struct { Reporter string Interval time.Duration Enabled bool StatsdReporterOpts StatsdReporterOpts PromReporterOpts PromReporterOpts }
type PromReporterOpts ¶
type PromReporterOpts struct {
ListenAddress string
}
type Scope ¶
type Scope interface { // Counter returns the Counter object corresponding to the name. Counter(name string) Counter // Gauge returns the Gauge object corresponding to the name. Gauge(name string) Gauge // Tagged returns a new child Scope with the given tags and current tags. Tagged(tags map[string]string) Scope // SubScope returns a new child Scope appending a further name prefix. SubScope(name string) Scope // contains filtered or unexported methods }
Scope is a namespace wrapper around a stats Reporter, ensuring that all emitted values have a given prefix or set of tags.
var RootScope Scope
Click to show internal directories.
Click to hide internal directories.