prometheus/tsdb
Julien Pivotto 2828c543bc tsdb: reduce chunk segment size in TestDiskFillingUpAfterDisablingOOO
The test only writes ~80 samples, so the default 512MB chunk segment
pre-allocation during compaction is unnecessary. Use 1MB instead to
avoid large file allocations on constrained CI environments.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
2026-04-02 12:23:55 +02:00
..
agent tsdb/agent: fix getOrCreate race (#18292) 2026-03-31 15:08:58 +02:00
chunkenc chunkenc: add tests for XOR2 active ST delta and value branches (#18363) 2026-03-31 15:15:48 +02:00
chunks Merge branch 'main' into st-main-sync2 2026-02-25 13:54:25 +00:00
compression tsdb: ST-in-WAL: Counter implementation and benchmarks (#17671) 2026-02-12 13:17:50 -05:00
docs feat(chunkenc): replace xoroptst chunk encoding with xor2 2026-03-06 14:35:06 +01:00
encoding Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
fileutil Support the aix/ppc64 compilation target 2026-03-18 17:07:44 -07:00
goversion Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
index tsdb: Optimize LabelValues for sparse intersections (Fixes #14551) 2026-02-17 13:35:31 -08:00
record Merge branch 'main' into start-time-main-sync 2026-03-12 08:28:15 +00: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 post merge conflict fixes 2026-03-12 09:03:08 +00: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 Fix typos in comments and metric help strings 2026-03-18 12:22:09 +08:00
compact_test.go test: migrate TestDelayedCompaction to synctest to eliminate flakiness 2026-03-30 23:58:08 +02:00
db.go tsdb: use float64 for retention percentage 2026-03-26 12:39:22 +01:00
db_append_v2_test.go Fix linting 2026-03-12 12:26:42 -07:00
db_test.go tsdb: reduce chunk segment size in TestDiskFillingUpAfterDisablingOOO 2026-04-02 12:23:55 +02: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 Merge pull request #18304 from crawfordxx/fix-typos-in-comments 2026-04-01 13:45:59 +02:00
head_append.go Add xor2-encoding feature flag 2026-03-12 11:07:00 -07:00
head_append_v2.go Add xor2-encoding feature flag 2026-03-12 11:07:00 -07:00
head_append_v2_test.go chore: remove util/testutil/synctest now that we use Go>=1.25 2026-03-30 19:48:39 +02: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 feat(tsdb): allow using ST capable XOR chunks - retain format on read (#18013) 2026-02-20 09:15:51 +01:00
head_test.go Merge pull request #18406 from machine424/depll 2026-04-01 16:40:50 +02:00
head_wal.go tsdb: Find the last series ID on startup from the last series id file and WAL scan (#18333) 2026-03-31 21:45:53 -07: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-17 13:35:31 -08:00
mocks_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
ooo_head.go Add xor2-encoding feature flag 2026-03-12 11:07:00 -07:00
ooo_head_read.go Add xor2-encoding feature flag 2026-03-12 11:07:00 -07: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 Add xor2-encoding feature flag 2026-03-12 11:07:00 -07: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 feat(tsdb): allow using ST capable XOR chunks - retain format on read (#18013) 2026-02-20 09:15:51 +01:00
querier_bench_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
querier_test.go feat(tsdb): allow using ST capable XOR chunks - retain format on read (#18013) 2026-02-20 09:15:51 +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: