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 the metrics wrapper for the store package
func NewMetrics ¶
NewMetrics returns a new instance of the Metrics with labels set by the node operator
func (Metrics) MeasureSince ¶
MeasureSince provides a wrapper functionality for emitting a a time measure metric with global labels (if any).
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(keys ...string)
MeasureSince is a no-op implementation of the StoreMetrics interface to avoid time.Now() calls
type StoreMetrics ¶
type StoreMetrics interface {
MeasureSince(keys ...string)
}
StoreMetrics defines the set of metrics for the store package
Click to show internal directories.
Click to hide internal directories.