Documentation
¶
Overview ¶
Package metrics provides a simple interface for collecting metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultRegistry is a default prometheus registry. DefaultRegistry = NewRegistry() // DefaultRegisterer is a default prometheus registerer. DefaultRegisterer prometheus.Registerer = DefaultRegistry // DefaultGatherer is a default prometheus gatherer. DefaultGatherer prometheus.Gatherer = DefaultRegistry )
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { // Collect ... Collect(ch chan<- Metric) }
Collector is a type that can collect metrics.
type Gatherer ¶
type Gatherer interface { // Gather ... Gather(collector Collector) }
Gatherer is a type that can gather metrics.
type Probe ¶
type Probe[K, V any] interface { // Do ... Do(ctx context.Context, monitor Monitor) error Collector }
Probe is a type that can probe metrics.
Click to show internal directories.
Click to hide internal directories.