prometheus/tsdb
Julien 9d38077e50
Some checks are pending
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Compliance testing (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
Merge pull request #18080 from ldufr/ldufresne/retention-size-percentage
Add percentage based retention
2026-02-24 15:50:36 +01:00
..
agent st: Add a hidden 'st-storage' feature flag for PROM-60 (#17907) 2026-01-28 09:05:54 +00:00
chunkenc Update tsdb/chunkenc/chunk.go 2026-01-14 16:41:03 +01:00
chunks test: Enable parallel execution for chunk write queue tests (#17338) 2026-02-24 12:37:20 +01:00
docs docs: Fix chunk format documentation for varint encoding 2025-08-15 10:56:21 +02:00
encoding Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
fileutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
goversion Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
index Merge pull request #18069 from mishraa-G/optimize-label-api 2026-02-16 21:51:40 +00:00
record Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
testdata tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772) 2020-08-11 06:56:08 +01:00
tombstones Refactor various tsdb sub-packages (#17847) 2026-01-13 13:38:58 +00:00
tsdbutil tsdb/wlog: Remove any temproary checkpoints when creating a Checkpoint (#17598) 2026-02-17 09:23:54 +01:00
wlog tsdb/wlog: Remove any temproary checkpoints when creating a Checkpoint (#17598) 2026-02-17 09:23:54 +01:00
.gitignore Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
block.go Merge pull request #18180 from atilsensalduz/bugfix/tsdb-writeMetaFile-fd-leak 2026-02-24 12:25:00 +00:00
block_test.go auto update head sample use in tests 2026-01-14 13:15:13 +01:00
blockwriter.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
blockwriter_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
CHANGELOG.md Rename default branch to main 2021-02-22 20:28:02 +01:00
compact.go tsdb: Migrate multi-errors to errors package (#17768) 2026-02-04 10:41:57 +01:00
compact_test.go chore(lint): enable wg.Go 2026-02-17 15:21:51 +01:00
db.go Merge pull request #18080 from ldufr/ldufresne/retention-size-percentage 2026-02-24 15:50:36 +01:00
db_append_v2_test.go tsdb: fix flaky TestBlockRanges by using explicit compaction 2026-02-15 11:44:23 +01:00
db_test.go Merge pull request #18080 from ldufr/ldufresne/retention-size-percentage 2026-02-24 15:50:36 +01:00
example_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
exemplar.go tsdb: fix rare case of OOO exemplar insertion pointing to the exemplar being deleted (#17865) 2026-01-15 08:49:37 +01:00
exemplar_test.go chore: enable staticcheck linter and update golangci-lint to 2.10.1 2026-02-18 15:58:16 +00:00
head.go tsdb: Migrate multi-errors to errors package (#17768) 2026-02-04 10:41:57 +01:00
head_append.go tests: Unify TestDiskFillingUpAfterDisablingOOO and avoid hiding errors (#18017) 2026-02-05 16:11:35 +00:00
head_append_v2.go tests(scrape): add TestScrapeLoopAppend_WithStorage (#17937) 2026-01-30 11:44:07 +00:00
head_append_v2_test.go chore(lint): enable wg.Go 2026-02-17 15:21:51 +01:00
head_bench_test.go tsdb: add auto-cleanup to newTestHead and remove redundant cleanup calls (#17890) 2026-01-19 12:57:05 +01:00
head_dedupelabels.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
head_other.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
head_read.go tsdb: Add StaleHead and GC for stale series in the Head block 2026-01-23 17:59:41 -08:00
head_read_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
head_test.go chore(lint): enable wg.Go 2026-02-17 15:21:51 +01:00
head_wal.go tsdb: Migrate multi-errors to errors package (#17768) 2026-02-04 10:41:57 +01:00
isolation.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
isolation_test.go chore(lint): enable wg.Go 2026-02-17 15:21:51 +01:00
label_values_bench_test.go tsdb: Optimize LabelValues for sparse intersections (Fixes #14551) 2026-02-14 15:18:54 +05:30
mocks_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
ooo_head.go update ooo_head.go but only with TODOs 2026-01-14 13:15:15 +01:00
ooo_head_read.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
ooo_head_read_test.go tsdb: add auto-cleanup to newTestHead and remove redundant cleanup calls (#17890) 2026-01-19 12:57:05 +01:00
ooo_head_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
ooo_isolation.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
ooo_isolation_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
querier.go tsdb: Migrate multi-errors to errors package (#17768) 2026-02-04 10:41:57 +01:00
querier_bench_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
querier_test.go update remaining tests 2026-01-14 13:15:16 +01:00
README.md Fixed broken link in tsdb README.md 2022-10-07 16:20:20 +00:00
repair.go tsdb: Migrate multi-errors to errors package (#17768) 2026-02-04 10:41:57 +01:00
repair_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
testutil.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
tsdbblockutil.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00

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: