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
machine424 5ac1e6a656
fix(test): fall back to default direct I/O requirements in tests when statx isn't supported by using a higher lever util
4 weeks ago
..
agent refactor: use the built-in max/min to simplify the code 1 month ago
chunkenc perf(chunkenc): intern the custom values for native histograms 2 months ago
chunks tsdb: fix issue where a new segment file is created for every chunk if `WithSegmentSize` not called (#16635) 4 weeks ago
docs chore: fix some comments (#16237) 3 months ago
encoding Attempt for record type 7 months ago
errors tsdb/errors.MultiError: support errors.As (#16544) 2 months ago
fileutil fix(test): fall back to default direct I/O requirements in tests when statx isn't supported by using a higher lever util 4 weeks ago
goversion remove obsolete build tag 1 year ago
index refactor: use slices.Contains to simplify code 2 months ago
record chore: enable gci linter (#16245) 3 months ago
testdata tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772) 5 years ago
tombstones refactor: use the built-in max/min to simplify the code 1 month ago
tsdbutil chore: enable gci linter (#16245) 3 months ago
wlog [PERF] Remote-write: re-use memory to read WAL data (#16197) 4 months ago
.gitignore Moving tsdb into its own subdirectory 6 years ago
CHANGELOG.md Rename default branch to main 4 years ago
README.md Fixed broken link in tsdb README.md 3 years ago
block.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 2 months ago
block_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 2 months ago
blockwriter.go Upgrade to github.com/oklog/ulid/v2 (#16168) 4 months ago
blockwriter_test.go chore: enable gci linter (#16245) 3 months ago
compact.go feat(tsdb): introduce --use-uncached-io feature flag and allow using it for chunks writing (#15365) 1 month ago
compact_test.go Fix linting issues found by golangci-lint v2.0.2 (#16368) 2 months ago
db.go refactor: use the built-in max/min to simplify the code (#16617) 1 month ago
db_test.go feat(tsdb): introduce --use-uncached-io feature flag and allow using it for chunks writing (#15365) 1 month ago
example_test.go Add context argument to Querier.Select (#12660) 2 years ago
exemplar.go refactor: use the built-in max/min to simplify the code 1 month ago
exemplar_test.go tsdb.CircularExemplarStorage: Avoid racing (#15231) 8 months ago
head.go Merge pull request #16333 from colega/fix-series-create-gc-race 2 months ago
head_append.go defer a.unmarkCreatedSeriesAsPendingCommit() 3 months ago
head_bench_test.go Create memSeries with pendingCommit=true 3 months ago
head_dedupelabels.go chore!: adopt log/slog, remove go-kit/log 9 months ago
head_other.go chore: enable unused-parameter from revive 4 months ago
head_read.go refactor: use the built-in max/min to simplify the code 1 month ago
head_read_test.go Create memSeries with pendingCommit=true 3 months ago
head_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 2 months ago
head_wal.go refactor: use the built-in max/min to simplify the code 1 month ago
isolation.go chore: enable early-return from revive 5 months ago
isolation_test.go chore: enable unused-parameter from revive 4 months ago
mocks_test.go tsdb: use Go standard errors 2 years ago
ooo_head.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 4 months ago
ooo_head_read.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 2 months ago
ooo_head_read_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 2 months ago
ooo_head_test.go Fix linting issues found by golangci-lint v2.0.2 (#16368) 2 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 [PERF] TSDB: Pass down label value limit into implementation (#16158) 2 months ago
querier_bench_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 2 months ago
querier_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 2 months ago
repair.go chore!: adopt log/slog, remove go-kit/log 9 months ago
repair_test.go feat: Allow customizing TSDB postings decoder (#13567) 8 months ago
testutil.go Fix linting issues found by golangci-lint v2.0.2 (#16368) 2 months ago
tsdbblockutil.go enable errorf rule from perfsprint linter 8 months 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: