prometheus/tsdb
Alan Protasio 8894d65cd6
Fix head stats and hooks when replaying a corrupted snapshot (#14079)
* Fixing head stats and hooks when replaying a corrupted snapshot

Signed-off-by: alanprot <alanprot@gmail.com>

* Fixing create/removed series metrics

Signed-off-by: alanprot <alanprot@gmail.com>

* Refactoring to have common code between gc and flush method

Signed-off-by: alanprot <alanprot@gmail.com>

* Update tsdb/head.go

Co-authored-by: Ayoub Mrini <ayoubmrini424@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>

* refactor

Signed-off-by: alanprot <alanprot@gmail.com>

* Update tsdb/head_test.go

Co-authored-by: Ganesh Vernekar <ganeshvern@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>

* Update tsdb/head_test.go

Co-authored-by: Ganesh Vernekar <ganeshvern@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>

---------

Signed-off-by: alanprot <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
Co-authored-by: Ayoub Mrini <ayoubmrini424@gmail.com>
Co-authored-by: Ganesh Vernekar <ganeshvern@gmail.com>
2024-05-24 22:43:21 -04:00
..
agent Enable perfsprint linter and fix up code 2024-05-15 17:51:05 +03:00
chunkenc Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
chunks Merge pull request #13218 from machine424/ro-promtool 2024-05-21 13:27:40 +02:00
docs Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
encoding
errors
fileutil
goversion
index Check context every 128 labels instead of 100 (#14118) 2024-05-21 11:30:43 +02:00
record Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
testdata
tombstones
tsdbutil
wlog Enable perfsprint linter and fix up code 2024-05-15 17:51:05 +03:00
.gitignore
block.go [ENHANCEMENT] TSDB: Optimize querying with regexp matchers 2024-05-09 10:55:30 +01:00
block_test.go [ENHANCEMENT] TSDB: Optimize querying with regexp matchers 2024-05-09 10:55:30 +01:00
blockwriter.go Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
blockwriter_test.go
CHANGELOG.md
compact.go Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
compact_test.go Merge pull request #13218 from machine424/ro-promtool 2024-05-21 13:27:40 +02:00
db.go Merge pull request #13218 from machine424/ro-promtool 2024-05-21 13:27:40 +02:00
db_test.go Merge pull request #13218 from machine424/ro-promtool 2024-05-21 13:27:40 +02:00
example_test.go
exemplar.go Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
exemplar_test.go Enable perfsprint linter and fix up code 2024-05-15 17:51:05 +03:00
head.go Fix head stats and hooks when replaying a corrupted snapshot (#14079) 2024-05-24 22:43:21 -04:00
head_append.go Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
head_bench_test.go
head_read.go [ENHANCEMENT] TSDB: Optimize querying with regexp matchers 2024-05-09 10:55:30 +01:00
head_read_test.go [ENHANCEMENT] TSDB: Optimize querying with regexp matchers 2024-05-09 10:55:30 +01:00
head_test.go Fix head stats and hooks when replaying a corrupted snapshot (#14079) 2024-05-24 22:43:21 -04:00
head_wal.go Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
isolation.go
isolation_test.go
mocks_test.go
ooo_head.go
ooo_head_read.go [ENHANCEMENT] TSDB: Optimize querying with regexp matchers 2024-05-09 10:55:30 +01:00
ooo_head_read_test.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00
ooo_head_test.go
ooo_isolation.go
ooo_isolation_test.go
querier.go tsdb: check for context cancel before regex matching postings (#14096) 2024-05-15 06:26:19 +02:00
querier_bench_test.go
querier_test.go tsdb: check for context cancel before regex matching postings (#14096) 2024-05-15 06:26:19 +02:00
README.md
repair.go
repair_test.go
tsdbblockutil.go

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: