prometheus/tsdb
Oleg Zaytsev 74ed44a1c6 Pass ref to SeriesLifecycleCallback.PostDeletion (#12626)
When a particular SeriesLifecycleCallback tries to optimize and run
closer to the Head, keeping track of the HeadSeriesRef instead of the
labelsets, it's impossible to handle the PostDeletion callback properly
as there's no way to know which series refs were deleted from the head.

This changes the callback to provide the series refs alongside the
labelsets, so the implementation can choose what to do.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2023-08-04 10:04:59 +02:00
..
agent Add Zstandard compression option for wlog (#11666) 2023-07-11 14:57:57 +02:00
chunkenc Fix errors from merge 2023-05-23 01:10:09 +08:00
chunks Fix race condition in ChunkDiskMapper.Truncate() (#12500) 2023-07-04 15:01:02 +00:00
docs
encoding
errors Fix context.Canceled wrapping in compaction 2023-03-23 11:41:28 +01:00
fileutil
goversion lint: Adjust to the lint warnings raised by current versions of golint-ci 2023-04-19 17:10:10 +02:00
hashcache
index Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
record tsdb: Support native histograms in snapshot on shutdown (#12258) 2023-07-05 11:44:13 +02:00
testdata
tombstones Merge remote-tracking branch 'upstream/main' 2023-05-23 00:20:36 +08:00
tsdbutil Fix populateWithDelChunkSeriesIterator and gauge histograms (#12330) 2023-05-19 10:24:06 +02:00
wlog Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
.gitignore
addsymbol.go compactor: avoid memory blow-up with stringlabels 2023-07-29 10:20:25 +01:00
addsymbol_stringlabels.go compactor: avoid memory blow-up with stringlabels 2023-07-29 10:20:25 +01:00
async_block_writer.go
block.go Allow to configure compacted blocks postings for matchers cache 2023-03-22 06:40:11 +01:00
block_test.go Merge remote-tracking branch 'upstream/main' 2023-04-26 21:25:21 +08:00
blockwriter.go
blockwriter_test.go Name float values as "floats", not as "values" 2023-04-13 19:25:24 +02:00
CHANGELOG.md
compact.go Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
compact_test.go Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
db.go Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
db_test.go Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
example_test.go
exemplar.go ci(lint): enable predeclared linter 2023-07-04 13:38:31 +00:00
exemplar_test.go
head.go Pass ref to SeriesLifecycleCallback.PostDeletion (#12626) 2023-08-04 10:04:59 +02:00
head_append.go Also pass chunkOpts into appendPreprocessor 2023-07-04 15:01:01 +00:00
head_append_test.go
head_bench_test.go Pass ref to SeriesLifecycleCallback.PostDeletion (#12626) 2023-08-04 10:04:59 +02:00
head_read.go Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
head_read_test.go
head_test.go Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
head_wal.go Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
isolation.go ci(lint): enable predeclared linter 2023-07-04 13:38:31 +00:00
isolation_test.go
mocks_test.go
ooo_head.go Name float values as "floats", not as "values" 2023-04-13 19:25:24 +02:00
ooo_head_read.go Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08:00
ooo_head_read_test.go Add Zstandard compression option for wlog (#11666) 2023-07-11 14:57:57 +02:00
ooo_head_test.go Name float values as "floats", not as "values" 2023-04-13 19:25:24 +02:00
postings_for_matchers_cache.go
postings_for_matchers_cache_test.go Fix linter errors in Grafana additions 2023-04-28 16:32:42 +02:00
querier.go Optimize labelValuesWithMatchers to fetch label values from selected series (#518) 2023-07-27 11:44:29 +02:00
querier_bench_test.go Optimize labelValuesWithMatchers to fetch label values from selected series (#518) 2023-07-27 11:44:29 +02:00
querier_test.go Optimize labelValuesWithMatchers to fetch label values from selected series (#518) 2023-07-27 11:44:29 +02:00
README.md
repair.go
repair_test.go
symbols_batch.go compactor: avoid memory blow-up with stringlabels 2023-07-29 10:20:25 +01:00
symbols_batch_test.go
tsdbblockutil.go
wal.go Add Zstandard compression option for wlog (#11666) 2023-07-11 14:57:57 +02:00
wal_test.go Add Zstandard compression option for wlog (#11666) 2023-07-11 14:57:57 +02: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: