Versions in this module Expand all Collapse all v2 v2.0.0 Jun 14, 2023 Changes in this version + var ErrWALClosed = fmt.Errorf("WAL storage closed") + func SubDirectory(base string) string + type Metrics struct + DiskSize prometheus.Gauge + NumActiveSeries prometheus.Gauge + NumDeletedSeries prometheus.Gauge + ReplayDuration prometheus.Histogram + TotalAppendedExemplars prometheus.Counter + TotalAppendedSamples prometheus.Counter + TotalCorruptions prometheus.Counter + TotalCreatedSeries prometheus.Counter + TotalFailedRepairs prometheus.Counter + TotalRemovedSeries prometheus.Counter + TotalSucceededRepairs prometheus.Counter + func NewMetrics(r prometheus.Registerer) *Metrics + func (m *Metrics) Unregister() + type Storage struct + func NewStorage(logger log.Logger, metrics *Metrics, registerer prometheus.Registerer, ...) (*Storage, error) + func (*Storage) StartTime() (int64, error) + func (w *Storage) Appender(_ context.Context) storage.Appender + func (w *Storage) Close() error + func (w *Storage) Directory() string + func (w *Storage) Truncate(mint int64) error + func (w *Storage) WriteStalenessMarkers(remoteTsFunc func() int64) error