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
hardlydearly ba4b058b7a refactor: use slices.Contains to simplify code 8 months ago
..
agent Fix linting issues found by golangci-lint v2.0.2 (#16368) 8 months ago
chunkenc Let HistogramAppender.appendable return CounterResetHeader instead of… (#16195) 9 months ago
chunks Fix linting issues found by golangci-lint v2.0.2 (#16368) 8 months ago
docs chore: fix some comments (#16237) 9 months ago
encoding Attempt for record type 1 year ago
errors tsdb/errors.MultiError: support errors.As (#16544) 8 months ago
fileutil chore: enable unused-parameter from revive 10 months ago
goversion remove obsolete build tag 2 years ago
index refactor: use slices.Contains to simplify code 8 months ago
record chore: enable gci linter (#16245) 9 months ago
testdata tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772) 5 years ago
tombstones chore: enable gci linter (#16245) 9 months ago
tsdbutil chore: enable gci linter (#16245) 9 months ago
wlog [PERF] Remote-write: re-use memory to read WAL data (#16197) 10 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 [PERF] TSDB: Pass down label value limit into implementation (#16158) 8 months ago
block_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 8 months ago
blockwriter.go Upgrade to github.com/oklog/ulid/v2 (#16168) 10 months ago
blockwriter_test.go chore: enable gci linter (#16245) 9 months ago
compact.go tsdb: Introduced new constructor for LeveledCompactor to take in metrics (#16408) 9 months ago
compact_test.go Fix linting issues found by golangci-lint v2.0.2 (#16368) 8 months ago
db.go fix typo (#16480) 8 months ago
db_test.go Fix linting issues found by golangci-lint v2.0.2 (#16368) 8 months ago
example_test.go Add context argument to Querier.Select (#12660) 2 years ago
exemplar.go tsdb.CircularExemplarStorage: Avoid racing (#15231) 1 year ago
exemplar_test.go tsdb.CircularExemplarStorage: Avoid racing (#15231) 1 year ago
head.go Merge pull request #16333 from colega/fix-series-create-gc-race 8 months ago
head_append.go defer a.unmarkCreatedSeriesAsPendingCommit() 9 months ago
head_bench_test.go Create memSeries with pendingCommit=true 9 months ago
head_dedupelabels.go chore!: adopt log/slog, remove go-kit/log 1 year ago
head_other.go chore: enable unused-parameter from revive 10 months ago
head_read.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 8 months ago
head_read_test.go Create memSeries with pendingCommit=true 9 months ago
head_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 8 months ago
head_wal.go Create memSeries with pendingCommit=true 9 months ago
isolation.go chore: enable early-return from revive 11 months ago
isolation_test.go chore: enable unused-parameter from revive 10 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) 10 months ago
ooo_head_read.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 8 months ago
ooo_head_read_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 8 months ago
ooo_head_test.go Fix linting issues found by golangci-lint v2.0.2 (#16368) 8 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) 8 months ago
querier_bench_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 8 months ago
querier_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 8 months 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) 8 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: