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
Darshan Chaudhary b7047f7fcb
Fix retention boundary so 2h retention deletes blocks right at the 2h boundary (#9633)
2 years ago
..
agent tsdb tests: make work with labels SymbolTable 2 years ago
chunkenc Optimize histogram iterators (#13340) 2 years ago
chunks Remove unused function tsdb/chunks.PopulatedChunk (#13763) 2 years ago
docs Enforce chunks ordering when writing index. (#8085) 2 years ago
encoding tsdb/encoding: use Go standard errors package 2 years ago
errors Enable default revive rules (#13068) 2 years ago
fileutil tests: remove err from message when testify prints it already 2 years ago
goversion remove obsolete build tag 2 years ago
index fix function and struct name 2 years ago
record tsdb tests: make work with labels SymbolTable 2 years ago
testdata tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772) 5 years ago
tombstones Update tombstones.go 2 years ago
tsdbutil Revert "Adding small test update for temp dir using t.TempDir (#13293)" 2 years ago
wlog Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2 years ago
.gitignore Moving tsdb into its own subdirectory 7 years ago
CHANGELOG.md Rename default branch to main 5 years ago
README.md Fixed broken link in tsdb README.md 3 years ago
block.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2 years ago
block_test.go TestHeadLabelValuesWithMatchers: Add test case (#13414) 2 years ago
blockwriter.go tsdb: use Go standard errors 2 years ago
blockwriter_test.go Add a chunk size limit in bytes (#12054) 2 years ago
compact.go Add native histograms to latency/duration metrics 2 years ago
compact_test.go Optimize histogram iterators (#13340) 2 years ago
db.go Fix retention boundary so 2h retention deletes blocks right at the 2h boundary (#9633) 2 years ago
db_test.go Fix retention boundary so 2h retention deletes blocks right at the 2h boundary (#9633) 2 years ago
example_test.go Add context argument to Querier.Select (#12660) 2 years ago
exemplar.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2 years ago
exemplar_test.go Standardise exemplar label as "trace_id" 2 years ago
head.go Add native histograms to latency/duration metrics 2 years ago
head_append.go tsdb: zero out Labels and memSeries pointers in pool (#13712) 2 years ago
head_bench_test.go tsdb: use Go standard errors 2 years ago
head_read.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2 years ago
head_read_test.go Add ShardedPostings() support to TSDB (#10421) 2 years ago
head_test.go tsdb tests: make work with labels SymbolTable 2 years ago
head_wal.go tsdb: create SymbolTables for labels as required 2 years ago
isolation.go tsdb: create isolation transaction slice on demand 2 years ago
isolation_test.go tsdb: turn off transaction isolation for head compaction (#11317) 3 years ago
mocks_test.go tsdb: use Go standard errors 2 years ago
ooo_head.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_head_read.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2 years ago
ooo_head_read_test.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2 years ago
ooo_head_test.go ci(lint): enable godot; append dot at the end of comments 2 years 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 Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2 years ago
querier_bench_test.go Optimize label values with matchers by taking shortcuts (#13426) 2 years ago
querier_test.go tests: remove err from message when testify prints it already 2 years ago
repair.go tsdb: use Go standard errors 2 years ago
repair_test.go tsdb tests: use go-cmp instead of DeepEquals 2 years ago
tsdbblockutil.go Optimize histogram iterators (#13340) 2 years ago
wal.go tsdb: create SymbolTables for labels as required 2 years ago
wal_test.go tsdb tests: make work with labels SymbolTable 2 years 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: