Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOpenMetricsHandler ¶
func NewOpenMetricsHandler(reader SnapshotReader) http.Handler
NewOpenMetricsHandler returns a handler that renders store snapshots through the Prometheus OpenMetrics encoder.
Types ¶
type CacheConfig ¶
CacheConfig configures the snapshot cache used by /metrics rendering.
type CacheStats ¶
CacheStats contains refresh statistics for exporter cache observability.
type SnapshotReader ¶
type SnapshotReader interface {
Snapshot() []store.MetricPoint
}
SnapshotReader reads metric snapshots.
func NewCachedSnapshotReader ¶
func NewCachedSnapshotReader(source SnapshotReader, cfg CacheConfig) SnapshotReader
NewCachedSnapshotReader wraps a snapshot reader with periodic cache refresh.
Click to show internal directories.
Click to hide internal directories.