Documentation ¶
Overview ¶
Package metricsregistry provides utilities for working with dynamically created metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface { GetOrRegisterCounter(name string) kitmetrics.Counter GetOrRegisterGauge(name string) kitmetrics.Gauge GetOrRegisterHistogram(name string, buckets int) kitmetrics.Histogram }
A Registry holds references to a set of metrics by name. It's guaranteed to keep returning the same metric given the same name and type. All implementations are also required to be thread safe.
func NewPrefixed ¶
NewPrefixed creates a new Registry backed by r with all created metric names prefixed with prefix + ".".
Click to show internal directories.
Click to hide internal directories.