Documentation
¶
Overview ¶
Package observability provides metrics, profiling, and etc.
Package observability provides metrics, profiling, and etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RootScope is the root scope for all metrics. RootScope = meter.NewHierarchicalScope("banyandb", "_") // SystemScope is the system scope for all metrics. SystemScope = RootScope.SubScope("system") )
View Source
var BypassRegistry = NewBypassRegistry()
BypassRegistry is a MetricsRegistry that does not collect any metrics.
Functions ¶
Types ¶
type Factory ¶ added in v0.7.0
type Factory interface {
NewCounter(name string, labelNames ...string) meter.Counter
NewGauge(name string, labelNames ...string) meter.Gauge
NewHistogram(name string, buckets meter.Buckets, labelNames ...string) meter.Histogram
}
Factory is the factory for creating metrics.
type MetricsRegistry ¶ added in v0.7.0
type MetricsRegistry interface {
run.Service
// With returns a factory with the given scope.
With(scope meter.Scope) Factory
// NativeEnabled returns whether the native mode is enabled.
NativeEnabled() bool
}
MetricsRegistry is the interface for metrics registry.
func NewBypassRegistry ¶ added in v0.9.0
func NewBypassRegistry() MetricsRegistry
NewBypassRegistry creates a new instance of bypassMetricsRegistry.
Click to show internal directories.
Click to hide internal directories.