Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultNamespace = "micro" DefaultBatchInterval = time.Second * 5 )
Functions ¶
Types ¶
type Metrics ¶
type Metrics interface { Init(...Option) error Counter(id string) Counter Gauge(id string) Gauge Histogram(id string) Histogram // Start/Stop a batched collector Start() error Stop() error // Name String() string }
Metrics provides a way to instrument application data
func NewMetrics ¶
Click to show internal directories.
Click to hide internal directories.