Versions in this module Expand all Collapse all v0 v0.1.1 Jul 6, 2026 v0.1.0 Jul 5, 2026 Changes in this version + const MetricBlocksTotal + const MetricCompactionsTotal + const MetricHeadChunksActive + const MetricHeadSeries + const MetricWALFsyncDurationS + type Appender struct + func (a *Appender) Append(ref uint64, ls []labels.Label, t int64, v float64) (uint64, error) + func (a *Appender) Commit() error + func (a *Appender) Rollback() error + type DB struct + func Open(dataDir string, opts Options) (*DB, error) + func (db *DB) Appender() *Appender + func (db *DB) ApplyRetention() + func (db *DB) Close() error + func (db *DB) FlushOlderThan(maxT int64) (string, error) + func (db *DB) Querier(mint, maxt int64) (*Querier, error) + func (db *DB) RunCompaction() error + func (db *DB) Stats() DBStats + type DBStats struct + Blocks int + Compactions int + HeadChunks int + HeadSeries int + type Options struct + BlockDuration time.Duration + Clock func() int64 + Retention time.Duration + type Querier struct + func (q *Querier) Close() error + func (q *Querier) Select(matchers ...*labels.Matcher) SeriesSet + type SampleIterator interface + At func() (int64, float64) + Err func() error + Next func() bool + type Series interface + Iterator func() SampleIterator + Labels func() []labels.Label + type SeriesSet interface + At func() Series + Err func() error + Next func() bool