prometheus/tsdb
Peter Štibraný c8f5ad1492
Optimize labelValuesWithMatchers to fetch label values from selected series (#518)
* Optimize labelValues when matchers select small number of series.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Address review feedback.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Add missing p.Err()

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Reuse existing slice with all label values.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Simplify check for expanded postings.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix comment.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

---------

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
2023-07-27 11:44:29 +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
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 Merge remote-tracking branch 'upstream/main' 2023-07-19 21:40:27 +08: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
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 Fix linter errors in Grafana additions 2023-04-28 16:32:42 +02: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: