Giedrius Statkevičius 61b4080a14
tsdb/{index,compact}: allow using custom postings encoding format (#13242)
* tsdb/{index,compact}: allow using custom postings encoding format

We would like to experiment with a different postings encoding format in
Thanos so in this change I am proposing adding another argument to
`NewWriter` which would allow users to change the format if needed.
Also, wire the leveled compactor so that it would be possible to change
the format there too.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* tsdb/compact: use a struct for leveled compactor options

As discussed on Slack, let's use a struct for the options in leveled
compactor.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* tsdb: make changes after Bryan's review

- Make changes less intrusive
- Turn the postings encoder type into a function
- Add NewWriterWithEncoder()

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

---------

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
2024-01-08 09:48:27 +00:00
..
2023-12-31 10:23:43 +00:00
2023-12-11 12:18:54 +00:00
2023-11-11 19:22:06 +01:00
2023-12-11 12:18:54 +00:00
2023-12-11 12:18:54 +00:00
2023-12-11 12:18:54 +00:00
2021-02-22 20:28:02 +01:00
2023-12-11 12:18:54 +00:00
2023-12-12 09:58:54 +00:00
2023-12-11 12:18:54 +00:00
2023-12-11 12:18:54 +00:00
2023-12-11 12:18:54 +00:00
2023-12-11 12:18:54 +00:00
2023-12-11 12:18:54 +00:00
2023-12-11 12:18:54 +00:00
2023-12-11 12:18:54 +00:00
2022-10-07 16:20:20 +00:00
2023-12-11 12:18:54 +00:00
2023-12-11 12:18:54 +00: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: