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
Ben Ye 0e6fca8e76 add unit test 2 years ago
..
agent agent db: make rejecting ooo samples configurable (#14094) 2 years ago
chunkenc Fix language in docs and comments (#14041) 2 years ago
chunks Upgrade to golangci-lint v1.59.0 2 years ago
docs Fix language in docs and comments (#14041) 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 add unit test 2 years ago
record Fix language in docs and comments (#14041) 2 years ago
testdata
tombstones Update tombstones.go 2 years ago
tsdbutil Revert "Adding small test update for temp dir using t.TempDir (#13293)" 2 years ago
wlog Upgrade to golangci-lint v1.59.0 2 years ago
.gitignore
CHANGELOG.md Rename default branch to main 5 years ago
README.md Fixed broken link in tsdb README.md 3 years ago
block.go tsdb: Extend compactor interface to allow compactions to create multiple output blocks (#14143) 2 years ago
block_test.go tsdb: Extend compactor interface to allow compactions to create multiple output blocks (#14143) 2 years ago
blockwriter.go tsdb: Extend compactor interface to allow compactions to create multiple output blocks (#14143) 2 years ago
blockwriter_test.go Add a chunk size limit in bytes (#12054) 2 years ago
compact.go tsdb: Extend compactor interface to allow compactions to create multiple output blocks (#14143) 2 years ago
compact_test.go tsdb: Extend compactor interface to allow compactions to create multiple output blocks (#14143) 2 years ago
db.go tsdb: Extend compactor interface to allow compactions to create multiple output blocks (#14143) 2 years ago
db_test.go tsdb: Extend compactor interface to allow compactions to create multiple output blocks (#14143) 2 years ago
example_test.go Add context argument to Querier.Select (#12660) 2 years ago
exemplar.go [ENHANCEMENT] TSDB: Save map lookup on validation 2 years ago
exemplar_test.go [Test] TSDB: BenchmarkResizeExemplar multiple per series 2 years ago
head.go Fix head stats and hooks when replaying a corrupted snapshot (#14079) 2 years ago
head_append.go tsdb: add details to duplicate sample error (#13277) 2 years ago
head_bench_test.go tsdb: use Go standard errors 2 years ago
head_read.go Change LabelValuesFor() to accept index.Postings (#14280) 2 years ago
head_read_test.go [ENHANCEMENT] TSDB: Optimize querying with regexp matchers 2 years ago
head_test.go Upgrade to golangci-lint v1.59.0 2 years ago
head_wal.go Fix language in docs and comments (#14041) 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 Change LabelValuesFor() to accept index.Postings (#14280) 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 Change LabelValuesFor() to accept index.Postings (#14280) 2 years ago
querier_bench_test.go Optimize label values with matchers by taking shortcuts (#13426) 2 years ago
querier_test.go Change LabelValuesFor() to accept index.Postings (#14280) 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

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: