Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
Labels []metrics.Label
}
Metrics defines a default StoreMetrics implementation.
func NewMetrics ¶
NewMetrics returns a new instance of the Metrics with labels set by the node operator.
type NoOpMetrics ¶
type NoOpMetrics struct{}
NoOpMetrics is a no-op implementation of the StoreMetrics interface
func NewNoOpMetrics ¶
func NewNoOpMetrics() NoOpMetrics
NewNoOpMetrics returns a new instance of the NoOpMetrics
func (NoOpMetrics) MeasureSince ¶
func (m NoOpMetrics) MeasureSince(start time.Time, keys ...string)
MeasureSince is a no-op implementation of the StoreMetrics interface to avoid time.Now() calls
type StoreMetrics ¶
StoreMetrics defines the set of supported metric APIs for the store package.
Click to show internal directories.
Click to hide internal directories.