prometheus/tsdb
Ganesh Vernekar d209a29a5b
Add unit test for histogram append and various querying scenarios (#11194)
* Add unit test for histogram append and various querying scenarios

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>

* make lint happy

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>

* Fix tests

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>

* Fix review comments

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
2022-08-29 15:35:03 +05:30
..
agent Merge branch 'main' into sparsehistogram 2022-08-10 17:54:37 +02:00
chunkenc Implement vertical compaction for native histograms (#11184) 2022-08-22 19:04:39 +05:30
chunks Reduce chunk write queue memory usage 2 (#10874) 2022-06-29 17:51:27 +05:30
docs Merge branch 'main' into sparsehistogram 2022-08-10 17:54:37 +02:00
encoding Merge branch 'main' into sparsehistogram 2021-11-17 19:57:31 +01:00
errors
fileutil Make necessary change to compile promql parser to wasm (#10683) 2022-05-12 09:12:05 +02:00
goversion
index Fix typo in symbol table size exceeded error message (#10746) 2022-05-25 10:40:36 +02:00
record Merge branch 'main' into sparsehistogram 2022-08-10 17:54:37 +02:00
test Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
testdata
tombstones refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00
tsdbutil Implement vertical compaction for native histograms (#11184) 2022-08-22 19:04:39 +05:30
wal Merge branch 'main' into sparsehistogram 2022-08-10 17:54:37 +02:00
.gitignore
CHANGELOG.md
README.md Update godoc links and remove note about TSDB versioning (#10754) 2022-05-26 18:34:43 +10:00
block.go fix typo (#10696) 2022-05-25 18:01:45 +02:00
block_test.go Add unit test for histogram append and various querying scenarios (#11194) 2022-08-29 15:35:03 +05:30
blockwriter.go refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00
blockwriter_test.go refactor: use `T.TempDir()` and `B.TempDir` to create temporary directory 2022-01-22 18:57:30 +08:00
compact.go tsdb: Fix chunk handling during appendHistogram 2022-07-06 18:44:53 +02:00
compact_test.go Fix deprecation 2022-05-04 13:43:23 +02:00
db.go Don't increment prometheus_tsdb_compactions_failed_total when context is canceled (#10772) 2022-06-17 11:21:43 +05:30
db_test.go Add unit test for histogram append and various querying scenarios (#11194) 2022-08-29 15:35:03 +05:30
example_test.go Merge branch 'main' into sparsehistogram 2022-05-04 13:37:13 +02:00
exemplar.go tsdb: use simpler map key to improve exemplar ingest performance (#10111) 2022-01-06 15:58:58 +05:30
exemplar_test.go unit tests: make all Labels sorted alphabetically (#10532) 2022-05-04 23:41:36 +02:00
head.go Merge branch 'main' into sparsehistogram 2022-08-10 17:54:37 +02:00
head_append.go Add unit test for histogram append and various querying scenarios (#11194) 2022-08-29 15:35:03 +05:30
head_bench_test.go refactor: use `T.TempDir()` and `B.TempDir` to create temporary directory 2022-01-22 18:57:30 +08:00
head_read.go Merge branch 'main' into sparsehistogram 2022-03-22 14:47:42 +01:00
head_test.go Add unit test for histogram append and various querying scenarios (#11194) 2022-08-29 15:35:03 +05:30
head_wal.go Merge branch 'main' into sparsehistogram 2022-08-10 17:54:37 +02:00
isolation.go Add the ability to disable tsdb isolation (#9270) 2021-11-19 15:41:32 +05:30
isolation_test.go Add the ability to disable tsdb isolation (#9270) 2021-11-19 15:41:32 +05:30
mocks_test.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
querier.go Add unit test for histogram append and various querying scenarios (#11194) 2022-08-29 15:35:03 +05:30
querier_bench_test.go refactor: use `T.TempDir()` and `B.TempDir` to create temporary directory 2022-01-22 18:57:30 +08:00
querier_test.go Merge branch 'main' into sparsehistogram 2022-03-22 14:47:42 +01:00
repair.go refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00
repair_test.go refactor: use `T.TempDir()` and `B.TempDir` to create temporary directory 2022-01-22 18:57:30 +08:00
tsdbblockutil.go Add unit test for histogram append and various querying scenarios (#11194) 2022-08-29 15:35:03 +05:30
wal.go tsdb: extract functions to encode and decode labels (#11045) 2022-07-26 20:12:00 +05:30
wal_test.go refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00

README.md

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: