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
bwplotka efdfb8fed6 refactor(appenderV2): 1:1 copy of head append test files for v2 (starting point) 1 month ago
..
agent feat: rename CreatedTimestamp to StartTimestamp (#17523) 2 months ago
chunkenc Add histogram validation in remote-read and during reducing resolution (#17561) 2 months ago
chunks tsdb: guard chunk length overflow in head chunk reader (#17533) 2 months ago
docs docs: Fix chunk format documentation for `varint` encoding 5 months ago
encoding Attempt for record type 1 year ago
errors tsdb/errors.MultiError: support errors.As (#16544) 8 months ago
fileutil chore(direct_io): fix constructor's name (#17371) 3 months ago
goversion remove obsolete build tag 2 years ago
index [PERF] TSDB: Speed up intersectPostings.Next 2 months ago
record Add histogram validation in remote-read and during reducing resolution (#17561) 2 months ago
testdata tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772) 6 years ago
tombstones docs: minor improvement for docs 3 months ago
tsdbutil Apply analyzer "modernize" to the whole codebase 5 months ago
wlog Update golangci-lint (#17478) 2 months 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 NumFloatSamples to TSDB block stats 6 months ago
block_test.go Update modernize (#17471) 2 months ago
blockwriter.go Phase out native histogram feature flag 3 months ago
blockwriter_test.go chore: enable gci linter (#16245) 10 months ago
compact.go feat: Add flag that blocks lvl 1 compactions until upload is confirmed in an external JSON file (#17435) 1 month ago
compact_test.go refactor(tsdb): use one test newTestDB constructor (#17638) 1 month ago
db.go refactor(tsdb): use one test newTestDB constructor (#17638) 1 month ago
db_test.go refactor(tsdb): use one test newTestDB constructor (#17638) 1 month ago
example_test.go Add context argument to Querier.Select (#12660) 2 years ago
exemplar.go Apply analyzer "modernize" to the whole codebase 5 months ago
exemplar_test.go Update modernize (#17471) 2 months ago
head.go Register missing metric prometheus_tsdb_sample_ooo_delta (#17477) 2 months ago
head_append.go feat: rename CreatedTimestamp to StartTimestamp (#17523) 2 months ago
head_append_v2.go refactor(appenderV2): 1:1 copy of head_append.go -> head_append_v2.go (starting point) 1 month ago
head_append_v2_test.go refactor(appenderV2): 1:1 copy of head append test files for v2 (starting point) 1 month ago
head_bench_test.go Update modernize (#17471) 2 months ago
head_bench_v2_test.go refactor(appenderV2): 1:1 copy of head append test files for v2 (starting point) 1 month ago
head_dedupelabels.go chore!: adopt log/slog, remove go-kit/log 1 year ago
head_other.go chore: enable unused-receiver rule from revive 5 months ago
head_read.go Apply analyzer "modernize" to the whole codebase 5 months ago
head_read_test.go Apply analyzer "modernize" to the whole codebase 5 months ago
head_test.go feat: rename CreatedTimestamp to StartTimestamp (#17523) 2 months ago
head_wal.go Merge pull request #17351 from bboreham/simplify-precreate 2 months ago
isolation.go Apply analyzer "modernize" to the whole codebase 5 months ago
isolation_test.go Update modernize (#17471) 2 months ago
mocks_test.go chore: enable unused-receiver rule from revive 5 months ago
ooo_head.go Update golangci-lint (#17478) 2 months ago
ooo_head_read.go chore: enable unused-receiver rule from revive 5 months ago
ooo_head_read_test.go refactor(tsdb): use one test newTestDB constructor (#17638) 1 month ago
ooo_head_test.go Apply analyzer "modernize" to the whole codebase 5 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 chore: enable unused-receiver rule from revive 5 months ago
querier_bench_test.go Update modernize (#17471) 2 months ago
querier_test.go refactor(tsdb): use one test newTestDB constructor (#17638) 1 month ago
repair.go chore!: adopt log/slog, remove go-kit/log 1 year ago
repair_test.go feat: Allow customizing TSDB postings decoder (#13567) 1 year ago
testutil.go Fix linting issues found by golangci-lint v2.0.2 (#16368) 9 months ago
tsdbblockutil.go enable errorf rule from perfsprint linter 1 year 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: