prometheus/tsdb
Bartlomiej Plotka 7a7bc65237
Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156)
# Conflicts:
#	tsdb/db_test.go

Apply suggestions from code review




tmp



Addressed comments.



Update util/compression/buffers.go

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
2025-03-10 10:36:26 +00:00
..
agent Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
chunkenc tsdb/chunkenc: don't reuse custom value slices between histograms 2024-11-29 16:28:09 +11:00
chunks chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
docs Merge branch 'main' into cedwards/nhcb-wal-wbl 2025-01-02 12:50:19 +01:00
encoding Attempt for record type 2024-12-05 09:21:47 -08:00
errors Upgrade to Go v1.24 (#16180) 2025-03-07 11:28:26 +01:00
fileutil chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
goversion
index chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
record chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
testdata
tombstones
tsdbutil fix: os.MkdirTemp with t.TempDir (#15860) 2025-01-31 14:32:20 +00:00
wlog Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
.gitignore
block_test.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
block.go Upgrade to github.com/oklog/ulid/v2 (#16168) 2025-03-05 16:03:25 +01:00
blockwriter_test.go feat: Allow customizing TSDB postings decoder (#13567) 2024-11-11 07:59:24 +01:00
blockwriter.go Upgrade to github.com/oklog/ulid/v2 (#16168) 2025-03-05 16:03:25 +01:00
CHANGELOG.md
compact_test.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
compact.go Upgrade to github.com/oklog/ulid/v2 (#16168) 2025-03-05 16:03:25 +01:00
db_test.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
db.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
example_test.go
exemplar_test.go tsdb.CircularExemplarStorage: Avoid racing (#15231) 2024-10-29 10:40:46 +01:00
exemplar.go tsdb.CircularExemplarStorage: Avoid racing (#15231) 2024-10-29 10:40:46 +01:00
head_append.go Use new record type only for NHCB 2024-12-06 13:46:20 -08:00
head_bench_test.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
head_dedupelabels.go
head_other.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
head_read_test.go
head_read.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
head_test.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
head_wal.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
head.go TSDB: keep duplicate series records in checkpoints while their samples may still be present (#16060) 2025-03-05 13:45:08 -05:00
isolation_test.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
isolation.go chore: enable early-return from revive 2025-02-10 22:08:43 +01:00
mocks_test.go
ooo_head_read_test.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
ooo_head_read.go Upgrade to github.com/oklog/ulid/v2 (#16168) 2025-03-05 16:03:25 +01:00
ooo_head_test.go fix TestOOOHeadChunkReader_Chunk on 32-bit 2024-12-16 10:45:07 -05:00
ooo_head.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
ooo_isolation_test.go
ooo_isolation.go
querier_bench_test.go TSDB benchmarks: Commit periodically to speed up init 2024-12-30 17:42:56 +00:00
querier_test.go Upgrade to github.com/oklog/ulid/v2 (#16168) 2025-03-05 16:03:25 +01:00
querier.go Upgrade to github.com/oklog/ulid/v2 (#16168) 2025-03-05 16:03:25 +01:00
README.md
repair_test.go feat: Allow customizing TSDB postings decoder (#13567) 2024-11-11 07:59:24 +01:00
repair.go
testutil.go Merge branch 'main' into cedwards/nhcb-wal-wbl 2025-01-02 12:50:19 +01:00
tsdbblockutil.go enable errorf rule from perfsprint linter 2024-11-06 16:50:36 +01:00

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: