Commit Graph

1013 Commits (114dc5c393ce54ac663a2466a82571e1e0e0d03d)

Author SHA1 Message Date
Björn Rabenstein ae42dd4c4a
Merge pull request #12179 from colega/fix-block-compaction-failed-when-shutting-down
2 years ago
Oleg Zaytsev 6e2905a4d4
Use zeropool.Pool to workaround SA6002 (#12189)
2 years ago
Ganesh Vernekar b33a382646
Remove mistakenly added file
2 years ago
Alan Protasio 6ddadd98b4
Optimization on `mergedStringIter` (#12132)
2 years ago
Oleg Zaytsev 344c630857
Fix context.Canceled wrapping in compaction
2 years ago
Oleg Zaytsev 2f32a9e3c3
Test compaction not failed during shutdown
2 years ago
Bryan Boreham b987afa7ef labels: simplify call to get Labels from Builder
2 years ago
Bryan Boreham 90b2f7a540
Merge pull request #12161 from codesome/update-comment
2 years ago
Vernon Miller ca0abf26c5
Adds an affirmative log message for successful WAL repair (#12135)
2 years ago
Ganesh Vernekar 1b7d973f14
tsdb: Fix a comment in tsdb/head_read.go
2 years ago
Abhijit Mukherjee 8f6d5dcd45
Fix: getting rid of EncOOOXOR chunk encoding (#12111)
2 years ago
Ganesh Vernekar 58a8d526e8
Merge pull request #11992 from codesome/no-reencode-chunk
2 years ago
Ganesh Vernekar 0a3f203c63
Update tests to not assume the chunk implementation
2 years ago
Ganesh Vernekar 45b025898f
Add BenchmarkHeadChunkQuerier and BenchmarkHeadQuerier
2 years ago
Ganesh Vernekar 0c0c2af7f5
Do not re-encode head chunk in ChunkQuerier
2 years ago
Ganesh Vernekar 2af44f9558
tsdb: Update OOO min/max time properly after replaying m-map chunks
2 years ago
Ganesh Vernekar 1c3f1216b3
tsdb: Test querying after missing wbl with snapshots enabled
2 years ago
Ganesh Vernekar c9d06f2826
tsdb: Replay m-map chunk only when required
2 years ago
Ganesh Vernekar 6c008ec56a
Merge pull request #11962 from jesusvazquez/jvp/protect-new-compaction-head-from-uninitialized-wbl
2 years ago
Đurica Yuri Nikolić c9b85afd93
Making the number of CPUs used for WAL replay configurable (#12066)
2 years ago
ansalamdaniel c1c444504e
Feat: metrics for head_chunks & wal folders (#12013)
2 years ago
Rens Groothuijsen d33eb3ab17
Automatically remove incorrect snapshot with index that is ahead of WAL (#11859)
2 years ago
Bryan Boreham f34b2cede3 Remove microbenchmarks
2 years ago
Ganesh Vernekar 66da1d51fd
Merge pull request #12003 from codesome/redundant-chunk-access
2 years ago
Ganesh Vernekar d504c950a2
Remove unnecessary chunk fetch in Head queries
2 years ago
Vishal N 96ba6831ae Observe delta in seconds prometheus_tsdb_sample_ooo_delta
2 years ago
Jesus Vazquez 5c3f058755 Add unit test and also protect truncateOOO
2 years ago
Jesus Vazquez f269077855 Protect NewOOOCompactionHead from an unitialized wbl
2 years ago
Justin Lei af1d9e01c7
Refactor tsdbutil for tests/native histograms (#11948)
2 years ago
George Krajcsovits 1f0cc09579
Export single ith test histogram generation functions (#11911)
2 years ago
Ganesh Vernekar 8e8b718365
Merge pull request #11858 from fayzal-g/fix-chunks-metrics
2 years ago
beorn7 1cfc8f65a3 histograms: Return actually useful counter reset hints
2 years ago
beorn7 57c18420ab histograms: General readability tweaks
2 years ago
fayzal-g cfa4ea53cc Correctly update chunksRemoved and chunks metrics
2 years ago
Ganesh Vernekar 6e560fe19b
tsdb: Avoid unnecessary allocation from 11779
2 years ago
Mingjie Shao 78d3c4e823 tsdb: Fixed typo in Histogram
2 years ago
Ganesh Vernekar cb2be6e62f
Merge pull request #11779 from codesome/memseries-ooo
2 years ago
Jesus Vazquez 136956cca4
Attempt to append ooo sample at the end first (#11615)
2 years ago
Marc Tudurí 721f33dbb0
histograms: Add remote-write support for Float Histograms (#11817)
2 years ago
Sebastian Rabenhorst c057318578
agent: native histogram support (#11842)
2 years ago
Ganesh Vernekar 38fa151a7c
tsdb: Only initialise out-of-order fields when required
2 years ago
beorn7 6dcd03dbf3 tsdb: Add integer gauge histogram support
2 years ago
Ganesh Vernekar 57bcbf1888
Merge pull request #11783 from codesome/gauge-histogram
2 years ago
Ganesh Vernekar 3c2ea91a83
tsdb: Test gauge float histograms
2 years ago
Ganesh Vernekar 609b12d719
tsdb: Support gauge float histogram with recoding of chunk
2 years ago
Ganesh Vernekar 8ad0d2d5d7
tsdb: Find union of two sets of histogram spans
2 years ago
Ganesh Vernekar d7f5129042
tsdb: Add logic to determine appendable gauge float histograms
2 years ago
Ganesh Vernekar a87e7e9e33
tsdb: Add counter reset hint to histograms and support in WAL
2 years ago
Oleg Zaytsev de93a279a0
Shortcut postings for matchers when empty postings are selected (#11813)
2 years ago
Ganesh Vernekar fd89d7892c
Merge pull request #11809 from bboreham/dont-sort-postings-values
2 years ago
Ganesh Vernekar c94a41c4b2
Merge pull request #11785 from Fish-pro/erroris
2 years ago
György Krajcsovits 97626c9583 Fix comment
2 years ago
Björn Rabenstein c49a28bb97
Merge pull request #11782 from codesome/floatappendabletest
2 years ago
Bryan Boreham e61348d9f3 tsdb/index: fast-track postings for label=""
2 years ago
Bryan Boreham cf92cd2688 tsdb: sort values for Postings only when required
2 years ago
Ganesh Vernekar 7ed1ddb338
tsdb: Improve TestHistogramChunkAppendable and add new cases
2 years ago
Ganesh Vernekar fa0f04bbc6
Merge pull request #11805 from bboreham/fix-benchmark-intersect
2 years ago
Bryan Boreham 3da2c99ffd tsdb/index: don't call ExpandPostings in a benchmark
2 years ago
Bryan Boreham 4931983ca9 tsdb/index: make BenchmarkIntersect do work on each loop
2 years ago
Fish-pro 6ed71a229e Use errors.Is to check for a specific error
2 years ago
Ganesh Vernekar b42802af9a
tsdb: Improve TestFloatHistogramChunkAppendable and add new cases
2 years ago
Ganesh Vernekar c155c0e312
tsdb: Test staleness handling of FloatHistogram
2 years ago
Ganesh Vernekar 2820e327db
tsdb: Add staleness handling for FloatHistogram
2 years ago
Ganesh Vernekar e555469ba1
tsdb: Remove isHistogramSeries from memSeries
2 years ago
Marc Tudurí 9474610baf
Support FloatHistogram in TSDB (#11522)
2 years ago
Bryan Boreham 1848623c77 tsdb: re-use iterator when stepping through chunks
2 years ago
Bryan Boreham ccea61c7bf
Merge pull request #11717 from bboreham/labels-abstraction
2 years ago
Ganesh Vernekar 6fd89a6fd2
Add chunk encoding for float histogram (#11716)
2 years ago
Bryan Boreham 10b27dfb84 Simplify IndexReader.Series interface
2 years ago
Bryan Boreham 4b6a4d1425 Update package tsdb tests for new labels.Labels type
2 years ago
Bryan Boreham ce2cfad0cb Update package tsdb/record for new labels.Labels type
2 years ago
Bryan Boreham 543c318ec2 Update package tsdb for new labels.Labels type
2 years ago
Bryan Boreham f0ec81badd Update package tsdb/test for new labels.Labels type
2 years ago
Bryan Boreham 14ad2e780b Update package tsdb/agent for new labels.Labels type
2 years ago
Bryan Boreham a5bdff414b Update package tsdb/index tests for new labels.Labels type
2 years ago
Bryan Boreham d3d96ec887 tsdb/index: use ScratchBuilder to create Labels
2 years ago
Bryan Boreham 927a14b0e9 Update package tsdb/index for new labels.Labels type
2 years ago
Bryan Boreham 89bf6e1df9 tsdb: Tidy up some test code
2 years ago
Bryan Boreham 0853250695 Review feedback
2 years ago
Bryan Boreham 463f5cafdd storage: re-use iterators to save garbage
2 years ago
Bryan Boreham f0866c0774 tsdb: optimise block series iterators
2 years ago
Bryan Boreham 3c7de69059 storage: allow re-use of iterators
2 years ago
Julien Pivotto 475cfe8a6b Merge remote-tracking branch 'origin/release-2.40'
2 years ago
Ganesh Vernekar db99fc43e4
Merge pull request #11632 from bboreham/improve-bbss
2 years ago
Ganesh Vernekar 54739a1465
Merge pull request #11674 from bboreham/fix-tsdb-test-mem
2 years ago
beorn7 5f366e9b62 histograms: Improve tests and fix exposed bugs
2 years ago
Julien Pivotto 0b302f8a39
Merge pull request #11662 from prometheus/release-2.40
2 years ago
Bryan Boreham 9853888f9b tsdb tests: allocate more reasonable sample slice
2 years ago
Ganesh Vernekar 72a48321da
Merge pull request #11633 from pstibrany/populate-error
2 years ago
Ganesh Vernekar b8b0d45d69
Fix reset of a histogram chunk iterator
2 years ago
Julien Pivotto 0372e259ba
Merge pull request #11634 from prometheus/release-2.40
2 years ago
Bryan Boreham 6bdecf377c
Switch from 'sanity' to more inclusive lanuage (#9376)
2 years ago
Peter Štibraný af838ccf83 Include source block in error message when loading chunk fails.
2 years ago
Bryan Boreham 1226922ff5 tsdb: improve blockBaseSeriesSet scan
2 years ago
Bryan Boreham 0c05f95e92 tsdb: use smaller allocation in blockBaseSeriesSet
2 years ago
Ganesh Vernekar ad79fb9f25
Do not error on empty chunk during iteration in populateWithDelChunkSeriesIterator
2 years ago
Ganesh Vernekar d0e683e26d
Add TestCompactHeadWithDeletion to test compaction failure after deletion
2 years ago
Ganesh Vernekar 42633bd05c
Merge pull request #11485 from t00350320/prometheus-office
2 years ago
tanghengjian 982007ecab
GetRefByhash will query a label's ref with hash value rather than lset.Hash().
2 years ago
Oleg Zaytsev 8553a98267
Optimize postings offset table reading (#11535)
2 years ago
Julien Pivotto 739494d81b
Fix alignment of atomic int64 (#11547)
2 years ago
Ganesh Vernekar fa6e05903f
Merge pull request #11447 from prometheus/sparsehistogram
2 years ago
Viacheslav Panasovets 3d2e18bad5
Fix time.Since() in defer. Wrap in anonymous function (#11489)
2 years ago
Björn Rabenstein 503ffba49a
chunkenc: Slightly optimize xorWrite/xoRead (#11476)
2 years ago
Ganesh Vernekar 8ee4dfd40c
Fix the build after conflict resolution
2 years ago
Ganesh Vernekar 648be89822
Merge remote-tracking branch 'upstream/main' into fix-conflict
2 years ago
Ganesh Vernekar 8e29110949
Add/Improve unit tests for compaction with histogram (#11342)
2 years ago
Ganesh Vernekar 507bfa46fd
Fix HistogramChunk's AtFloatHistogram()
2 years ago
Signed-off-by: Jesus Vazquez 3362bf6d79
Fix merge conflicts
2 years ago
Jesus Vazquez 775d90d5f8
TSDB: Rename wal package to wlog (#11352)
2 years ago
Sonali Rajput 9165aedb49 Fixed broken link in tsdb README.md
2 years ago
Jesus Vazquez e934d0f011 Merge 'main' into sparsehistogram
2 years ago
Ganesh Vernekar d0a6488c74
Update metrics for histograms
2 years ago
Bryan Boreham 9b31adc4e8
tsdb: fix up sort call with faster slices.Sort (#11380)
2 years ago
Bryan Boreham 3330d85ba8
Replace sort.Strings and sort.Ints with faster slices.Sort (#11318)
2 years ago
Bryan Boreham 7f2374b703
tsdb: faster postings sort with generic slices.Sort (#11054)
2 years ago
Ganesh Vernekar 83d738e263
Fix 'invalid magic number 0' bug (#11338)
2 years ago
Ganesh Vernekar f34aeefe6e
Allow overlapping blocks by default (#11331)
2 years ago
Robert Fratto 448cfda6c1
tsdb/agent: fix validation of default options (#9876)
2 years ago
Bryan Boreham d166da7b59
tsdb: stop saving a copy of last 4 samples in memSeries (#11296)
2 years ago
Bryan Boreham ff00dee262
tsdb: turn off transaction isolation for head compaction (#11317)
2 years ago
Bryan Boreham d0607435a2
tsdb: remove chunkRange and oooCapMax from memSeries (#11288)
2 years ago
Ganesh Vernekar 758e29258b
Add/Improve unit tests for compaction with histogram Part 2 (#11343)
2 years ago
Jesus Vazquez c1b669bf9b
Add out-of-order sample support to the TSDB (#11075)
2 years ago
Bryan Boreham af6167df58
WAL loading: don't send empty buffers over chan (#11319)
2 years ago
Ganesh Vernekar 2474c6fb2c
Error on amending histograms on append (#11308)
2 years ago
Bryan Boreham d2701be53a
tsdb: remove chunk pool from memSeries (#11280)
2 years ago
Björn Rabenstein 7ad36505d5
tsdb: Update comment about a possible space optimization (#11303)
2 years ago
Bryan Boreham e49d596fb1
WAL loading: check sample time is valid earlier (#11307)
2 years ago
Ganesh Vernekar d354f20c2a
Add a feature flag to control native histogram ingestion (#11253)
2 years ago
Ganesh Vernekar 83e11014dd
Remove unnecessary tsdb/tsdbutil/buffer.go (#11302)
2 years ago
Ganesh Vernekar b2d01cbc57
Remove unnecessary code in encoding/decoding histograms (#11252)
2 years ago
Bryan Boreham 136f8b0ebb
tsdb: comment reason for isolation tracking reads (#11301)
2 years ago
Bryan Boreham 176fa38e76 tsdb: in tests use labels.FromStrings
2 years ago
Bryan Boreham 0437dd7cee tsdb/wal: in tests use labels.FromStrings
2 years ago
Julien Pivotto ec6c1f17d1
Update dependencies (#11287)
2 years ago
Julien Pivotto 96d5a32659
Update go to 1.19, set min version to 1.18 (#11279)
2 years ago
Ganesh Vernekar 8f755f8f35
Extend createHead in tests to support histograms
2 years ago
Ganesh Vernekar f540c1dbd3
Add support for histograms in WAL checkpointing (#11210)
2 years ago
Ganesh Vernekar 6383994f3e
Improve WAL/mmap chunks test for histograms (#11208)
2 years ago
Ganesh Vernekar d209a29a5b
Add unit test for histogram append and various querying scenarios (#11194)
2 years ago
Abirdcfly 314aa45c2c
chore: remove duplicate word in comments (#11225)
2 years ago
Ganesh Vernekar 0f4e5196c4
Implement vertical compaction for native histograms (#11184)
2 years ago
Xiaochao Dong 09187fb0cc
Replay WAL concurrently without blocking (#10973)
2 years ago
Łukasz Mierzwa 3196c98bc2
Reduce memSeries memory usage by decoupling metadata (#11152)
2 years ago
beorn7 c9fd3c235d Merge branch 'main' into sparsehistogram
2 years ago
Xiaochao Dong 1078081aec
Fix race condition when updating lastSeriesID during loading chunk snapshot (#11099)
2 years ago
Levi Harrison 77a7af4461
Add histogram validation (#11052)
2 years ago
Levi Harrison cb8582637a
Implement rollback for histograms (#11071)
2 years ago
Bryan Boreham 00ec720c29
tsdb: extract functions to encode and decode labels (#11045)
2 years ago
Paschalis Tsilias a0f7c31c26
Fix type byte of WAL metadata records in docs (#11035)
2 years ago
Paschalis Tsilias d1122e0743
Introduce TSDB changes for appending metadata to the WAL (#10972)
2 years ago
ZhangJian He 95b7d058ac
Fix markdown syntax in tsdb index.md (#11032)
2 years ago
Levi Harrison 3d538351f6
Recognize exemplar record type in WAL watcher metrics (#11008)
2 years ago
Levi Harrison 08f3ddb864
Sparse histogram remote-write support (#11001)
2 years ago
beorn7 3ce988b031 Merge branch 'sparsehistogram' into beorn7/sparsehistogram
2 years ago
beorn7 28f028e938 Merge branch 'main' into sparsehistogram
2 years ago
beorn7 5d14046d28 tsdb: Fix chunk handling during appendHistogram
2 years ago
beorn7 642c5758ff tsdb: Expose histogram append bug
2 years ago
beorn7 49be0784b4 tsdb: Fix chunk handling during histogram recoding
2 years ago
Jesus Vazquez 6cfe44d7fd
WaitUntilIdle optimize idling time (#10878)
2 years ago
Julien Pivotto bacd776356
Merge pull request #10907 from damnever/fix/panic
2 years ago
Peter Štibraný ffc60d8397
Reduce chunk write queue memory usage 2 (#10874)
2 years ago
Xiaochao Dong (@damnever) 6b042da2d8 Fix panic if series is not found when deleting series
2 years ago
Steve Azzopardi 04fe2c9522
fix(tsdb): inc mmap corruption counter on mmap out of sequence error (#10406)
2 years ago
Peter Štibraný 03a2313f7a
Reduce chunk write queue memory usage (#10873)
2 years ago
Bryan Boreham 9f77d23889
tsdb: commit data periodically in CreateBlock (#10788)
2 years ago
Łukasz Mierzwa d65f037def
Don't increment prometheus_tsdb_compactions_failed_total when context is canceled (#10772)
2 years ago
beorn7 095b6c93dd Merge branch 'main' into sparsehistogram
2 years ago
Bryan Boreham 542b9ecdbd
tsdb: reduce sleep time when reading WAL (#10859)
3 years ago
songjiayang c2af0de522 make sure response error when TOC parse failed
3 years ago
beorn7 40ad5e284a Merge branch 'main' into beorn7/sparsehistogram
3 years ago
Bryan Boreham 9f79a6f4b5
tsdb: faster CRC check by avoiding allocations (#10789)
3 years ago
Matej Gera 1dd247f68b
Remote Write: Rename confusing `walDir` parameter to `dir` (#10464)
3 years ago
David Leadbeater 57f4aab27d
Update godoc links and remove note about TSDB versioning (#10754)
3 years ago
maizige 10b677b826
fix typo (#10696)
3 years ago
Filip Petkovski d3cb39044e
Fix typo in symbol table size exceeded error message (#10746)
3 years ago
Julien Pivotto 6e3a0efe40
Make necessary change to compile promql parser to wasm (#10683)
3 years ago
Matthias Rampke 78f2645787
test(tsdb): break up repeated test to avoid timeout (#10671)
3 years ago
Łukasz Mierzwa 88f9b248b4
Correctly format error message (#10669)
3 years ago
Bryan Boreham 4b9f248e85
unit tests: make all Labels sorted alphabetically (#10532)
3 years ago
beorn7 654c07783c Fix deprecation
3 years ago
beorn7 3bc711e333 Merge branch 'main' into sparsehistogram
3 years ago
Matthieu MOREL e2ede285a2
refactor: move from io/ioutil to io and os packages (#10528)
3 years ago
Oleg Zaytsev af0f6da5cb
Fix chunk overflow appending samples at a variable rate (#10607)
3 years ago
Paschalis Tsilias 40c1efe8bc
tsdb/agent: Ignore duplicate exemplars (#10595)
3 years ago
Julien Pivotto 685ce9964d
Merge pull request #10599 from prometheus/release-2.35
3 years ago
Robert Fratto 286dfc70b7
tsdb/agent: port grafana/agent#676 (#10587)
3 years ago
chavacava 0b41fd6e71
Fix data races in WAL replay (#10571)
3 years ago
beorn7 7ee1836ef5 Merge branch 'main' into sparsehistogram
3 years ago
Bryan Boreham 2c1be4df7b
tsdb: more efficient sorting of postings read from WAL at startup (#10500)
3 years ago
Wilbert Guo 83a2e52bc2
Add SyncForState Implementation for Ruler HA (#10070)
3 years ago
Howie 1291ec7185
deleting *.tmp WAL files on startup (#10317)
3 years ago
beorn7 f9c411604d Fix spelling errors
3 years ago
beorn7 4210aac74a Merge branch 'main' into sparsehistogram
3 years ago
Chris Marchbanks c1387494dd
Merge pull request #10452 from prometheus/release-2.34
3 years ago
songjiayang 8d8be43824
Update wal.md (#10442)
3 years ago
Mauro Stettler b025390cb4
Disable chunk write queue by default, allow user to configure the exact size (#10425)
3 years ago
Łukasz Mierzwa da23c4649a
Enable misspell check in golangci-lint (#10393)
3 years ago
Łukasz Mierzwa a4317bf0ec
Run gofumpt on all files (#10392)
3 years ago
cui fliter c9b56d1a49
all: fix some typos (#10389)
3 years ago
Ganesh Vernekar 4cc25c0cb0
Fix panic on query when m-map replay fails with snapshot enabled (#10348)
3 years ago
Björn Rabenstein d1edb006c1
Merge pull request #10341 from prometheus/release-2.33
3 years ago
Ganesh Vernekar 24827782cb
Fix panics when m-mapping head chunks (#10316)
3 years ago
Dieter Plaetinck aa8874bc56
clarify Head.appendableMinValidTime (#10303)
3 years ago
lwangrabbit 9fde6edbf5
tsdb/wal: Move comment of w.writer.Append(...) to the WriteTo interface (#10198)
3 years ago
Eng Zer Jun 3e67654d37
refactor: use `T.TempDir()` and `B.TempDir` to create temporary directory
3 years ago
Robert Fratto b71a6dbbd1
tsdb/agent: Fix deadlock from simultaneous GC and write (#10166)
3 years ago
Mauro Stettler bf959b36cb
Nits after PR 10051 merge (#10159)
3 years ago
Ganesh Vernekar 129ed4ec8b
Fix Example() function in TSDB (#10153)
3 years ago
Mauro Stettler 0df3489275
Write chunks via queue, predicting the refs (#10051)
3 years ago
Oleg Zaytsev a83d46ee9c
Tidy postingsWithIndexHeap (#10123)
3 years ago
Bryan Boreham 82860a770c
tsdb: use simpler map key to improve exemplar ingest performance (#10111)
3 years ago
Oleg Zaytsev 701545286d
Pop intersected postings heap without popping (#10092)
3 years ago
Peter Štibraný e51a17b501
CompactBlockMetas should produce correct mint/maxt for overlapping blocks. (#10108)
3 years ago
Oleg Zaytsev 3947238ce0
Label values with matchers by intersecting postings (#9907)
3 years ago
Ganesh Vernekar 6c7577177c
Merge pull request #10056 from charlesxsh/fix-TestWALRestoreCorrupted
3 years ago
beorn7 86cc83b13c storage: iterator fixes after merge
3 years ago
beorn7 64c7bd2b08 Merge branch 'main' into sparsehistogram
3 years ago
Shihao Xia 3696d7dedb fix potential goroutine leaks
3 years ago
Julien Pivotto 27343277fa
Merge release-2.32 forward into main (#10032)
3 years ago
beorn7 0ede6ae321 storage: fix bug #10027 in iterators' Seek method
3 years ago
beorn7 6f33ab2b35 Merge branch 'main' into sparsehistogram
3 years ago
Ganesh Vernekar 227d155e3f
Fix queries after a failed snapshot replay (#9980)
3 years ago
Ganesh Vernekar 05d4d97bcd
Fix queries after a failed snapshot replay (#9980)
3 years ago
Nick Pillitteri 084bd70708
Convert atomic Int64 to native type when logging value (#9938)
3 years ago
beorn7 e8e9155a11 Merge branch 'main' into sparsehistogram
3 years ago
beorn7 e4e24453fa Merge branch 'main' into beorn7/merge2
3 years ago
Robert Fratto 4cbddb41eb
tsdb/agent: Synchronize appender code with grafana/agent main (#9664)
3 years ago
Björn Rabenstein b866db009b
storage: Fix and improve the Seek method of various iterators (#9878)
3 years ago
Björn Rabenstein 7e42acd3b1
tsdb: Rework iterators (#9877)
3 years ago
Ganesh Vernekar 26c0a433f5
Support appending different sample types to the same series (#9705)
3 years ago
Bryan Boreham 1b74a3812e
Fix panic, out of order chunks, and race warning during WAL replay (#9856)
3 years ago
Oleg Zaytsev 5e746e4e88
Check postings bytes length when decoding (#9766)
3 years ago
Darshan Chaudhary 9dcf8b2208
Add the ability to disable tsdb isolation (#9270)
3 years ago
beorn7 5d4db805ac Merge branch 'main' into sparsehistogram
3 years ago
Dieter Plaetinck 067efc3725
clarify HeadChunkID type and usage (#9726)
3 years ago
Sunil Thaha a484a83d4a
fix: panic when checkpoint directory is empty (#9687)
3 years ago
Dieter Plaetinck 0fac9bb859
Add basic initial developer docs for TSDB (#9451)
3 years ago
beorn7 4c28d9fac7 Move to histogram.Histogram pointers
3 years ago
Mauro Stettler 8a4f659126 fix error message
3 years ago
Robert Fratto 72a9f7fee9
Share TSDB locker code with agent (#9623)
3 years ago
beorn7 f1065e44a4 model: String method for histogram.Histogram
3 years ago
Peter Štibraný 422e7839d4
Add more size checks when writing individual sections in the index. (#9710)
3 years ago
Mateusz Gozdek 83086aee00 tsdb/agent: use unique registry per tests
3 years ago
Mateusz Gozdek 2f312ff4c5 tsdb: mark TestTombstoneCleanRetentionLimitsRace test as slow
3 years ago
Levi Harrison 7400e07fa9
Close DB in Agent tests (#9630)
3 years ago
Mateusz Gozdek f4650c27e7 tsdb/wal: fix flaky TestReaderFuzz* tests
3 years ago
Björn Rabenstein 4c56a193c5
Merge pull request #9478 from prometheus/beorn7/pkg-deprecation
3 years ago
曹明 a0d31c28fc tsdb: Add windows arm64 support.
3 years ago
Mateusz Gozdek b319b14431
tsdb/chunks: preallocate at least some space on non-Windows systems (#9581)
3 years ago
beorn7 c954cd9d1d Move packages out of deprecated pkg directory
3 years ago
beorn7 a1e595edac Fix two trivial lint warnings
3 years ago
beorn7 8f92c90897 Add TODOs and some minor tweaks
3 years ago
Dieter Plaetinck cda025b5b5
TSDB: demistify SeriesRefs and ChunkRefs (#9536)
3 years ago
johncming b882d2b7c7
tsdb/wal: Avoid writing closed channel. (#9566)
3 years ago
chenlujjj d18e42c650
refine comments of Checkpoint function (#9655)
3 years ago
Marco Pracucci 309b094b92
Optimized MemPostings.EnsureOrder() (#9673)
3 years ago
Ganesh Vernekar c8b267efd6
Get histograms from TSDB to the rate() function implementation
3 years ago
Marco Pracucci 9f5ff5b269
Allow to disable trimming when querying TSDB (#9647)
3 years ago
Marco Pracucci edd05d7010
Add Head.AppendableMinValidTime() (#9643)
3 years ago
Mateusz Gozdek b7bdf6fab2 Fix imports formatting
3 years ago
Mateusz Gozdek 1a6c2283a3 Format Go source files using 'gofumpt -w -s -extra'
3 years ago
Julien Pivotto 6e1d6edb33
Exclude agent from windows tests (#9645)
3 years ago
chenlujjj 660329d5b3
add tombstoneFormatVersionSize & tombstonesCRCSize constants (#9625)
3 years ago
Praveen Ghuge 64d9b41998
Use testing.T.TempDir() instead of ioutil.TempDir() in tsdb/wal unit tests (#9602)
3 years ago
Robert Fratto bc72a718c4
Initial draft of prometheus-agent (#8785)
3 years ago
Xiaochao Dong c2d1c85857
close tsdb.head in test case (#9580)
3 years ago
Furkan Türkal 0c07663b70
fix: possible race on shared variables in test (#9470)
3 years ago
Dieter Plaetinck d5bfbe3114
improve bstream comments and doc (#9560)
3 years ago
Julien Pivotto 73255e15f6 Address golint failures from revive
3 years ago
Serge Catudal 8c3eca84db
Fix remote write receiver endpoint for exemplars (#9414)
3 years ago
beorn7 a9008f5423 Merge branch 'main' into sparsehistogram
3 years ago
beorn7 4998b9750f chunkenc: Bugfix and naming tweaks
3 years ago
beorn7 78ef9c6359 chunkenc: make xor reading more DRY
3 years ago
beorn7 4a1b84f8b2 chunkenc: make xor writing more DRY
3 years ago
Björn Rabenstein 3704c6c20a
Merge pull request #9533 from prometheus/beorn7/sparsehistogram
3 years ago
beorn7 1a4e54cfbb tsdb: Complete chunk format documentation
3 years ago
beorn7 0876d57aea chunkenc: Add test for chunk layout encoding
3 years ago
beorn7 ad9b4c2b68 Fix typos
3 years ago
beorn7 fe50d6fc14 Update chunk layout documentation
3 years ago
beorn7 ed33aea392 Avoid redundant varint decoding in chunk appender construction
3 years ago
beorn7 d31bb75dc4 Use VarbitUint rather than VarbitInt to encode len(spans)
3 years ago
beorn7 3179215a59 Encode zero threshold first
3 years ago
beorn7 c5522677bf Improve encoding of zero threshold
3 years ago
beorn7 7093b089f2 Use more varbit in histogram chunks
3 years ago
Björn Rabenstein 7309c20e7e
Merge pull request #9500 from codesome/resettests
3 years ago
Ganesh Vernekar dcaf568279
Metadata -> Layout renaming
3 years ago
Ganesh Vernekar 4e206c7c77
Fix reviews
3 years ago
Dieter Plaetinck d5afe0a577
TSDB: Use a dedicated head chunk reference type (#9501)
3 years ago
Ganesh Vernekar 85e6686f84
Add unit test for counter reset header
3 years ago
Björn Rabenstein 311673d62e
Save on slice allocations in histogramIterator (#9494)
3 years ago
Björn Rabenstein c450c01eb9
Remove obsolete TODOs about metadata (#9490)
3 years ago
beorn7 7a8bb8222c Style cleanup of all the changes in sparsehistogram so far
3 years ago
beorn7 fd5ea4e0b5 Merge branch 'main' into sparsehistogram
3 years ago
Ganesh Vernekar 5d4dc7e413
Convert the header into an enum
3 years ago
Ganesh Vernekar 175ef4ebcf
Add a NotCounterReset flag
3 years ago
Ganesh Vernekar a280b6c2da
Fix review comments
3 years ago
Ganesh Vernekar 10d4cb6dc0
Merge remote-tracking branch 'upstream/main' into release-2.30-merge
3 years ago
Ganesh Vernekar 9d81b2d610
Fix tests
3 years ago
Ganesh Vernekar 59d77ff16d
Fix build
3 years ago
Ganesh Vernekar 10bc6e80ee
Fix panic on failed snapshot replay and don't hard fail replay on disabled exemplars (#9438)
3 years ago
Ganesh Vernekar eb9931e961
Add info about counter resets in chunk meta
3 years ago
Ganesh Vernekar b30db03f35
Cut v2.30.2 (#9426)
3 years ago
Ganesh Vernekar a7d499e19a
Reduce log level during WAL replay on overlapping m-map chunks (#9425)
3 years ago
Ganesh Vernekar 8c597e5166
Don't error on overlapping m-mapped chunks during WAL replay (#9381)
3 years ago
Ganesh Vernekar 1dd22ed655
Support stale samples for sparse histograms (#9352)
3 years ago
Bryan Boreham 1fb3c1b598
Replace calls to strings.Compare (#9397)
3 years ago
Ganesh Vernekar 2bcd9f2f69
Link 2 more TSDB blog posts in tsdb/README.md (#9371)
3 years ago
Darshan Chaudhary 1f688657bf
Call delete on head if interval overlaps (#9151)
3 years ago
Ganesh Vernekar 30534e99d9
Take snapshot only after closing the WAL (#9328)
3 years ago
Ganesh Vernekar 8944520ccc
Fix deletion of old snapshots (#9314)
3 years ago
Bryan Boreham 2327236bb5
Decrement active_appenders metric when no samples added (#9230)
3 years ago
Bryan Boreham 87d909df4a
Remove symbols map from TSDB head (#9301)
3 years ago
Callum Styan 93886d8417
Fix div by 0 panic is resize function. (#9286)
3 years ago
Ganesh Vernekar 1315d8ecb6
Remove query hacks in the API and fix metrics (#9275)
3 years ago
Ganesh Vernekar 35b1a82594
Exemplars in snapshot (#9255)
3 years ago
Ganesh Vernekar eeace6bcab
Add couple of metrics to track sparse histograms in TSDB (#9271)
3 years ago
Levi Harrison 06afe6162c
Also ignore `func1`
3 years ago
Julien Pivotto d5676fb9e0
Merge pull request #9254 from prometheus/superq/go1.17
3 years ago
SuperQ e167a45c65
Add new Go build tags.
3 years ago
Callum Styan cc55e57c1b
Fix a data race in the loadWAL function caused by reusing the same error var in multiple goroutines (#9259)
3 years ago
Ganesh Vernekar 8a5d8c15e3
Do not replay checkpoint if it is covered by snapshot (#9226)
3 years ago
Ganesh Vernekar c373200b75
Cut a new chunk on counter resets for any bucket
3 years ago
Bryan Boreham 9dfdc3eb36
Speed up BenchmarkPostings_Stats (#9213)
3 years ago
Ganesh Vernekar 328a74ca36
Fix bugs and add enhancements to the chunk snapshot (#9185)
3 years ago
Ganesh Vernekar eedb86783e
Fix queries on blocks for sparse histograms and add unit test (#9209)
3 years ago
Ganesh Vernekar 42f576aa18
Add test for sparse histogram compaction (#9208)
3 years ago
Jupiter 84ab705318
32 should better be replaced by "symbolFactor" (#9203)
3 years ago
Marco Pracucci 84e786ebc1
Fixed Decoder.Series() error checking (#9201)
3 years ago
Julien Pivotto cab96a06ef
Merge release 2.29 in main (#9196)
3 years ago
Ganesh Vernekar f0688c21d6
Log sparse histograms into WAL and replay from it (#9191)
3 years ago
Ganesh Vernekar 095f572d4a
Sync sparsehistogram branch with main (#9189)
3 years ago
Bryan Boreham 040ef175eb
Optimise WAL loading by removing extra map and caching min-time (#9160)
3 years ago
Bryan Boreham 7407457243
Avoid deadlock when processing duplicate series record (#9170)
3 years ago
Ganesh Vernekar ee7e0071d1
Snapshot in-memory chunks on shutdown for faster restarts (#7229)
3 years ago
Ganesh Vernekar 19e98e5469
Support storing the zero threshold in the histogram chunk (#9165)
3 years ago
Ganesh Vernekar 7026e6b4e4
Fix tests in histo_test.go (#9163)
3 years ago
Ganesh Vernekar 8b70e87ab9
Merge remote-tracking branch 'upstream/main' into sparse-refactor
3 years ago
Ganesh Vernekar 848cb5a6d6
Enhanced WAL replay for duplicate series record (#7438)
3 years ago
Ganesh Vernekar 8002a3ab80
Breakdown tsdb/head.go into multiple files (#9147)
3 years ago
jinglina 1a430e5f89
remove redundant parentheses (#9134)
3 years ago
Darshan Chaudhary c4f2e9eec5
Add present_over_time (#9097)
3 years ago
Oleg Zaytsev f9482c5bf6
Clarify computeChunkEndTime's purpose (#9049)
3 years ago
Bryan Boreham 60804c5a09
remote_write: reduce blocking from garbage-collect of series (#9109)
3 years ago
Bryan Boreham dea37853d9
tsdb: use dennwc/varint to speed up WAL decoding (#9106)
3 years ago
Bryan Boreham 6788760efa
Reduce memory allocation in benchmarkIterator() (#5983)
3 years ago
Oleg Zaytsev b1ed4a0a66
LabelNames API with matchers (#9083)
3 years ago
Jupiter 7337ecf0d3
Log when total symbol size exceeds 2^32 bytes. (#9104)
3 years ago
Ganesh Vernekar 59d02b5ef0
tsdb: Block Head GC till pending readers are done reading (#9081)
3 years ago