The Prometheus monitoring system and time series database.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
prometheus/tsdb
Bryan Boreham a82bb77178
[PERF] Remote-write: re-use memory to read WAL data (#16197)
3 months ago
..
agent TSDB: keep duplicate series records in checkpoints while their samples may still be present (#16060) 4 months ago
chunkenc tsdb/chunkenc: don't reuse custom value slices between histograms 7 months ago
chunks chore: enable unused-parameter from revive 4 months ago
docs Merge branch 'main' into cedwards/nhcb-wal-wbl 6 months ago
encoding Attempt for record type 7 months ago
errors Upgrade to Go v1.24 (#16180) 4 months ago
fileutil chore: enable unused-parameter from revive 4 months ago
goversion remove obsolete build tag 1 year ago
index chore: enable unused-parameter from revive 4 months ago
record chore: enable unused-parameter from revive 4 months ago
testdata tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772) 5 years ago
tombstones chore!: adopt log/slog, remove go-kit/log 9 months ago
tsdbutil fix: os.MkdirTemp with t.TempDir (#15860) 5 months ago
wlog [PERF] Remote-write: re-use memory to read WAL data (#16197) 3 months ago
.gitignore Moving tsdb into its own subdirectory 6 years ago
CHANGELOG.md Rename default branch to main 4 years ago
README.md Fixed broken link in tsdb README.md 3 years ago
block.go Upgrade to github.com/oklog/ulid/v2 (#16168) 4 months ago
block_test.go chore: enable unused-parameter from revive 4 months ago
blockwriter.go Upgrade to github.com/oklog/ulid/v2 (#16168) 4 months ago
blockwriter_test.go feat: Allow customizing TSDB postings decoder (#13567) 8 months ago
compact.go Upgrade to github.com/oklog/ulid/v2 (#16168) 4 months ago
compact_test.go Upgrade to github.com/oklog/ulid/v2 (#16168) 4 months ago
db.go Upgrade to github.com/oklog/ulid/v2 (#16168) 4 months ago
db_test.go TSDB: keep duplicate series records in checkpoints while their samples may still be present (#16060) 4 months ago
example_test.go Add context argument to Querier.Select (#12660) 2 years ago
exemplar.go tsdb.CircularExemplarStorage: Avoid racing (#15231) 8 months ago
exemplar_test.go tsdb.CircularExemplarStorage: Avoid racing (#15231) 8 months ago
head.go TSDB: keep duplicate series records in checkpoints while their samples may still be present (#16060) 4 months ago
head_append.go Use new record type only for NHCB 7 months ago
head_bench_test.go Revert "Fix `MemPostings.Add` and `MemPostings.Get` data race (#15141)" 8 months ago
head_dedupelabels.go chore!: adopt log/slog, remove go-kit/log 9 months ago
head_other.go chore: enable unused-parameter from revive 4 months ago
head_read.go chore: enable unused-parameter from revive 4 months ago
head_read_test.go TSDB: Simplify OOO Select by copying the head chunk (#14396) 12 months ago
head_test.go TSDB: keep duplicate series records in checkpoints while their samples may still be present (#16060) 4 months ago
head_wal.go TSDB: keep duplicate series records in checkpoints while their samples may still be present (#16060) 4 months ago
isolation.go chore: enable early-return from revive 5 months ago
isolation_test.go chore: enable unused-parameter from revive 4 months ago
mocks_test.go tsdb: use Go standard errors 2 years ago
ooo_head.go Upgrade to Go v1.24 (#16180) 4 months ago
ooo_head_read.go Upgrade to github.com/oklog/ulid/v2 (#16168) 4 months ago
ooo_head_read_test.go Upgrade to Go v1.24 (#16180) 4 months ago
ooo_head_test.go fix TestOOOHeadChunkReader_Chunk on 32-bit 6 months ago
ooo_isolation.go Fix issue where queries can fail or omit OOO samples if OOO head compaction occurs between creating a querier and reading chunks (#13115) 2 years ago
ooo_isolation_test.go Fix issue where queries can fail or omit OOO samples if OOO head compaction occurs between creating a querier and reading chunks (#13115) 2 years ago
querier.go Upgrade to github.com/oklog/ulid/v2 (#16168) 4 months ago
querier_bench_test.go TSDB benchmarks: Commit periodically to speed up init 6 months ago
querier_test.go Upgrade to github.com/oklog/ulid/v2 (#16168) 4 months ago
repair.go chore!: adopt log/slog, remove go-kit/log 9 months ago
repair_test.go feat: Allow customizing TSDB postings decoder (#13567) 8 months ago
testutil.go Merge branch 'main' into cedwards/nhcb-wal-wbl 6 months ago
tsdbblockutil.go enable errorf rule from perfsprint linter 8 months ago

README.md

TSDB

GoPkg

This directory contains the Prometheus TSDB (Time Series DataBase) library, which handles storage and querying of all Prometheus v2 data.

Documentation

External resources

A series of blog posts explaining different components of TSDB: