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
Callum Styan ed0c3b25c7 refactor new version flag to make it easier to pick a specific format 2 years ago
..
agent refactor new version flag to make it easier to pick a specific format 2 years ago
chunkenc Fix more counterResetInAnyBucket edgecases 2 years ago
chunks storage: make histogram reset handling consistent in chainSampleIterator (#12779) 2 years ago
docs Merge branch 'main' into sparsehistogram 3 years ago
encoding Merge 'main' into sparsehistogram 3 years ago
errors Fix context.Canceled wrapping in compaction 3 years ago
fileutil Update go to 1.19, set min version to 1.18 (#11279) 3 years ago
goversion lint: Adjust to the lint warnings raised by current versions of golint-ci 3 years ago
index Fix int32 overflow issues (#12978) 2 years ago
record TSDB: Pre-size buffer to read samples from WAL 2 years ago
testdata tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772) 5 years ago
tombstones Copy tombstone intervals to avoid race (#12245) 3 years ago
tsdbutil Add a chunk size limit in bytes (#12054) 2 years ago
wlog Update exp package (#12650) 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 Add context argument to tsdb.PostingsForMatchers 2 years ago
block_test.go Add context argument to LabelQuerier.LabelValues (#12665) 2 years ago
blockwriter.go Merge 'main' into sparsehistogram 3 years ago
blockwriter_test.go Add a chunk size limit in bytes (#12054) 2 years ago
compact.go Fix int32 overflow issues (#12978) 2 years ago
compact_test.go Add context argument to IndexReader.Postings (#12667) 2 years ago
db.go Expose --storage.tsdb.retention.time in metric prometheus_tsdb_retention_limit_seconds (#12986) 2 years ago
db_test.go Expose --storage.tsdb.retention.time in metric prometheus_tsdb_retention_limit_seconds (#12986) 2 years ago
example_test.go Add context argument to Querier.Select (#12660) 2 years ago
exemplar.go Update exp package (#12650) 2 years ago
exemplar_test.go tsdb: in tests use labels.FromStrings 3 years ago
head.go Additionally wrap WBL replay error (#12406) 2 years ago
head_append.go Refactor solution to not repeat code 2 years ago
head_bench_test.go Pass ref to SeriesLifecycleCallback.PostDeletion (#12626) 2 years ago
head_read.go Update exp package (#12650) 2 years ago
head_read_test.go Use a linked list for memSeries.headChunk (#11818) 2 years ago
head_test.go Additionally wrap WBL replay error (#12406) 2 years ago
head_wal.go Additionally wrap WBL replay error (#12406) 2 years ago
isolation.go ci(lint): enable predeclared linter 3 years ago
isolation_test.go tsdb: turn off transaction isolation for head compaction (#11317) 3 years ago
mocks_test.go Move packages out of deprecated pkg directory 4 years ago
ooo_head.go Name float values as "floats", not as "values" 3 years ago
ooo_head_read.go Very minor refactor of the integer overflow fix 2 years ago
ooo_head_read_test.go Add context argument to LabelQuerier.LabelValues (#12665) 2 years ago
ooo_head_test.go Name float values as "floats", not as "values" 3 years ago
querier.go Update exp package (#12650) 2 years ago
querier_bench_test.go tsdb: Tighten up sub-benchmark scope in BenchmarkQuerier (#12718) 2 years ago
querier_test.go Fix exit condition of TestQuerierIndexQueriesRace 2 years ago
repair.go refactor: move from io/ioutil to io and os packages (#10528) 4 years ago
repair_test.go Add context argument to IndexReader.Postings (#12667) 2 years ago
tsdbblockutil.go Support FloatHistogram in TSDB (#11522) 3 years ago
wal.go Add Zstandard compression option for wlog (#11666) 2 years ago
wal_test.go Add Zstandard compression option for wlog (#11666) 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: