prometheus/tsdb
Oleg Zaytsev 88ad42fb38
Check storage.ErrNotFound in labelValuesFromSeries
I'm not very comfortable with using an equality check on errors, but I'm
copying the same code from Prometheus:

f711d71aa8/tsdb/querier.go (L532-L533)

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2023-09-06 18:48:49 +02:00
..
agent tsdb/agent: ensure that new series get written to WAL on rollback (#12592) 2023-07-27 09:28:26 -04:00
chunkenc Merge branch 'main' into prometheus-2023-07-31-76dd9b547 2023-08-04 09:46:03 +02: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 Hide histogram chunk append and reset header internals (#12352) 2023-07-26 15:08:16 +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 Fix bug in populateBlock when it could return with some asyncBlockWriter still running. 2023-01-09 17:15:45 +01:00
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 branch 'main' into prometheus-2023-07-31-76dd9b547 2023-08-04 09:46:03 +02:00
example_test.go
exemplar.go scrape: Enable ingestion of multiple exemplars per sample 2023-07-13 14:16:10 +02:00
exemplar_test.go
head.go Pass ref to SeriesLifecycleCallback.PostDeletion (#12626) 2023-08-04 10:04:59 +02:00
head_append.go Merge branch 'main' into prometheus-2023-07-31-76dd9b547 2023-08-04 09:46:03 +02: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 branch 'main' into prometheus-2023-07-31-76dd9b547 2023-08-04 09:46:03 +02: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 Allow forcing usage of PostingsForMatchersCache 2022-12-28 13:44:10 +01:00
postings_for_matchers_cache_test.go Fix linter errors in Grafana additions 2023-04-28 16:32:42 +02:00
querier.go Check storage.ErrNotFound in labelValuesFromSeries 2023-09-06 18:48:49 +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 Merge branch 'main' into prometheus-2023-07-31-76dd9b547 2023-08-04 09:46:03 +02:00
README.md
repair.go
repair_test.go Simplify IndexReader.Series interface 2022-12-19 15:22:09 +00:00
symbols_batch.go compactor: avoid memory blow-up with stringlabels 2023-07-29 10:20:25 +01:00
symbols_batch_test.go
tsdbblockutil.go Support FloatHistogram in TSDB (#11522) 2022-12-28 14:25:07 +05:30
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: