Versions in this module Expand all Collapse all v0 v0.37.1 Jun 6, 2022 v0.37.0 Jun 6, 2022 Changes in this version + var DefaultMaxWALTime = int64(4 * time.Hour / time.Millisecond) + var DefaultMinWALTime = int64(5 * time.Minute / time.Millisecond) + var DefaultTruncateFrequency = 2 * time.Hour + var ErrUnsupported = errors.New("unsupported operation with WAL-only storage") + type DB struct + func Open(l log.Logger, reg prometheus.Registerer, rs *remote.Storage, dir string, ...) (*DB, error) + func (db *DB) Appender(_ context.Context) storage.Appender + func (db *DB) ChunkQuerier(ctx context.Context, mint, maxt int64) (storage.ChunkQuerier, error) + func (db *DB) Close() error + func (db *DB) ExemplarQuerier(ctx context.Context) (storage.ExemplarQuerier, error) + func (db *DB) Querier(ctx context.Context, mint, maxt int64) (storage.Querier, error) + func (db *DB) StartTime() (int64, error) + type Options struct + MaxWALTime int64 + MinWALTime int64 + NoLockfile bool + StripeSize int + TruncateFrequency time.Duration + WALCompression bool + WALSegmentSize int + func DefaultOptions() *Options