prometheus/tsdb
Bryan Boreham 11c49151b7
[REFACTOR] TSDB chunks: replace magic numbers with constants (#17095)
For size of header and position of flags byte.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-09-02 16:05:21 +01:00
..
agent Merge pull request #17074 from prymitive/logs 2025-09-02 12:55:12 +01:00
chunkenc [REFACTOR] TSDB chunks: replace magic numbers with constants (#17095) 2025-09-02 16:05:21 +01:00
chunks Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
docs docs: Fix chunk format documentation for `varint` encoding 2025-08-15 10:56:21 +02:00
encoding Neater string vs byte-slice conversions (#14425) 2024-09-21 12:19:21 +02:00
errors tsdb/errors.MultiError: support errors.As (#16544) 2025-05-06 13:45:16 +00:00
fileutil Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
goversion remove obsolete build tag 2024-01-17 22:26:32 +08:00
index Fix minor issues after applying analyzer "modernize" 2025-08-27 15:44:11 +02:00
record Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
testdata tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772) 2020-08-11 06:56:08 +01:00
tombstones Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
tsdbutil Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
wlog Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
.gitignore Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
CHANGELOG.md Rename default branch to main 2021-02-22 20:28:02 +01:00
README.md Fixed broken link in tsdb README.md 2022-10-07 16:20:20 +00:00
block.go add NumFloatSamples to TSDB block stats 2025-07-07 13:48:18 -07:00
block_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
blockwriter.go Upgrade to github.com/oklog/ulid/v2 (#16168) 2025-03-05 16:03:25 +01:00
blockwriter_test.go chore: enable gci linter (#16245) 2025-03-22 15:46:13 +00:00
compact.go Merge pull request #17074 from prymitive/logs 2025-09-02 12:55:12 +01:00
compact_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
db.go Log when GC / block write starts 2025-08-26 10:30:22 +01:00
db_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
example_test.go Add context argument to Querier.Select (#12660) 2023-09-12 12:37:38 +02:00
exemplar.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
exemplar_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
head.go Merge pull request #17074 from prymitive/logs 2025-09-02 12:55:12 +01:00
head_append.go [tsdb] Add CounterResetHint: CounterReset to synthetic zero sample (#17011) 2025-08-21 23:26:01 +02:00
head_bench_test.go Create memSeries with pendingCommit=true 2025-03-27 11:11:57 +01:00
head_dedupelabels.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
head_other.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
head_read.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
head_read_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
head_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
head_wal.go Merge pull request #17081 from prometheus/superq/if_err_nil 2025-09-02 12:37:51 +01:00
isolation.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
isolation_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
mocks_test.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
ooo_head.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
ooo_head_read.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
ooo_head_read_test.go [PERF] TSDB: Pass down label value limit into implementation (#16158) 2025-05-06 18:54:48 +01:00
ooo_head_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
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) 2023-11-24 12:38:38 +01:00
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) 2023-11-24 12:38:38 +01:00
querier.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
querier_bench_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
querier_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
repair.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
repair_test.go feat: Allow customizing TSDB postings decoder (#13567) 2024-11-11 07:59:24 +01:00
testutil.go Fix linting issues found by golangci-lint v2.0.2 (#16368) 2025-05-03 19:05:13 +02:00
tsdbblockutil.go enable errorf rule from perfsprint linter 2024-11-06 16:50:36 +01:00

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: