Commit Graph

1229 Commits (5450e6d368e32e04f70f5a9d05e38796084eb7df)

Author SHA1 Message Date
Bryan Boreham 9135da1e4f TSDB: Review feedback
4 months ago
Bryan Boreham 7ffd3ca280 TSDB: Cosmetic: move HeadAndOOO implementations where old code was
4 months ago
Bryan Boreham e95607b276 TSDB: Lock round access to labels, where necessary
4 months ago
Bryan Boreham 26b3de0438 TSDB: Remove OOOHeadIndexReader
4 months ago
Bryan Boreham a299c7b6d6 TSDB: Remove OOOHeadChunkReader
4 months ago
Bryan Boreham e7e50a3afd TSDB: Remove code for querying OOO-head only
4 months ago
Bryan Boreham 0a2ff76881 TSDB tests: Fix up BenchmarkQueries
4 months ago
Bryan Boreham f261597944 TSDB: Fix up LabelValues to work for OOO-only head
4 months ago
Bryan Boreham 6529d6336c TSDB: NewHeadAndOOOChunkReader takes headChunkReader
4 months ago
Bryan Boreham e04d137649 [PERF] TSDB: Query head and ooo-head together
4 months ago
Bryan Boreham da31da3ea6 Refactor: extract selectSeriesSet and selectChunkSeriesSet
4 months ago
Bryan Boreham 7e24844d08 Refactor: extract headChunkReader.chunkFromSeries()
4 months ago
Bryan Boreham a32aca0cd7 Refactoring: extract getOOOSeriesChunks
4 months ago
Bryan Boreham c75c8f8329 Refactoring: extract getSeriesChunks
4 months ago
Bryan Boreham 0c852680bf [Benchmark] TSDB: Add BenchmarkQuerierSelectWithOutOfOrder
4 months ago
György Krajcsovits 41656162fc tsdb: prepare inserting native histograms into OOO head
4 months ago
Bryan Boreham aa4b056ad0
Merge pull request #13200 from bboreham/wlog-defer
4 months ago
machine424 82f38d3e9a
fix(tsdb/db_test.go): close the corrupted chunk after creating it to satisfy Windows FS
4 months ago
George Krajcsovits cf62fb5c44
Merge pull request #14629 from krajorama/fix-to-encoded-chunks
4 months ago
György Krajcsovits 1ea3781699 Fix ToEncodedChunks minT for recoded chunks
4 months ago
Ben Ye b7a58dcf3d
Add hidden flag to disable overlapping compaction (#14581)
4 months ago
George Krajcsovits 3a673cd0bc
Merge pull request #14598 from krajorama/fix-compaction-panic
4 months ago
machine424 92873d3009 feat: allow to delay head compaction start time helping Prometheus instances to
4 months ago
Oleg Zaytsev 0833d2a230
Fix appendable: check whether last val was a histogram (#14613)
4 months ago
György Krajcsovits 98ecdf3589 Fix corrupting spans via iterator sharing
4 months ago
György Krajcsovits d2f6fa7289 Fix lint error
4 months ago
György Krajcsovits 1b6d1366d8 Fix re-code histogram and chunk re-code conflict
4 months ago
György Krajcsovits aff089a014 Reproduce recoding bug with new and missing buckets
4 months ago
Bryan Boreham 80adc5baf4 Merge remote-tracking branch 'origin/main' into merge-2.54-to-main
4 months ago
machine424 9e43ad2e37 chore(remote_write): clean up as watcher.go is part of wlog now
4 months ago
Bryan Boreham 015638c4b6 [BUGFIX] TSDB: Exclude OOO chunks mapped after compaction starts
4 months ago
Bryan Boreham bded853035 [Test] TSDB: TestOOOCompaction with samples added after compaction starts
4 months ago
George Krajcsovits 00ab05c3b9
Native histograms: fix spurios counter reset when merging recoded chunk to normal chunk (#14513)
4 months ago
Bartlomiej Plotka 6816149852
Merge pull request #14525 from colega/merge-mmmaxtime-into-shardhash
4 months ago
Max Amin 84b819a69f
feat: add Google cloud roundtripper for remote write (#14346)
4 months ago
Oleg Zaytsev 0300ad58a9
Revert the option regardless of error
4 months ago
Oleg Zaytsev d8e1b6bdfd
Store mmMaxTime in same field as seriesShard
4 months ago
Oleg Zaytsev b7f2f3c3ac
Add BenchmarkLoadRealWLs
4 months ago
Arve Knudsen 9af19ed856 Merge remote-tracking branch 'prometheus/main' into arve/wlog-histograms
4 months ago
Filip Petkovski be7a4c9b83
Ignore stale histograms for counter reset detection
4 months ago
Bryan Boreham bdfeae6489
Merge pull request #14474 from bboreham/shrink-memseries
4 months ago
Carrie Edwards a28d1974b4
Merge pull request #14438 from prometheus/cedwards/ooo-chunk-encoding
5 months ago
Carrie Edwards 02f05cbf2c Ensure lastMmapRef set to 0 if mmapRefs is empty
5 months ago
Carrie Edwards 79b53bd3de Refactor TestWBLReplay to use scenarios
5 months ago
Carrie Edwards 7e020bb4e9 Refactor
5 months ago
Carrie Edwards e0d7cef545 Rename some variables in Commit()
5 months ago
Carrie Edwards fb2ebe1c3d Fix linting
5 months ago
Carrie Edwards 2e0e4e9ce9 Add support for handling multiple chunks in OOO head
5 months ago
Bryan Boreham d878146c70 TSDB: shrink memSeries by moving bools together
5 months ago
Bryan Boreham d116bf7b9f
Merge pull request #14109 from harry671003/pass_limit_to_querier
5 months ago
Bryan Boreham 646e1e847d Merge branch 'release-2.53' into merge-2.53.1
5 months ago
Bryan Boreham 7083ae8267
[release 2.53] Revert 13583 to stop dropping samples in remote-write catch-up (#14446)
5 months ago
Arve Knudsen e410a215fb Fix a couple of comments
5 months ago
Bryan Boreham 4d7532f60b tsdb: reset symbol table for exemplars periodically
5 months ago
Bryan Boreham 5281a6bc1b TSDB: rebuild labels symbol-table on each compaction
5 months ago
Bryan Boreham 709c5d6fc3
TSDB: Lock around access to labels in head under -tags dedupelabels (#14322)
5 months ago
Bartlomiej Plotka 9198952f7c
[PRW 2.0] Merging `remote-write-2.0` feature branch to main (PRW 2.0 support + metadata in WAL) (#14395)
5 months ago
Carrie Edwards ee909b340b Fix test
5 months ago
Carrie Edwards 00499006c0 Testutil refactoring
5 months ago
Carrie Edwards 55f53330b2 Use storage.ExpandSamples instead of samplesFromIterator
5 months ago
Carrie Edwards 06550883c1 Clean up of tests and test utils
5 months ago
Carrie Edwards cb76884352 Fix linting
5 months ago
Carrie Edwards 45a32a29ef Update tsdb tests to use test utils.
5 months ago
Carrie Edwards 60917f628b Add test utilities for testing different sample types.
5 months ago
Bryan Boreham 134e8dc7af
TSDB: Simplify OOO Select by copying the head chunk (#14396)
5 months ago
Oleg Zaytsev 726ed124e4
Replace `ListPostings.Seek`'s binary search call by the generic `slices.BinarySearch` (#14393)
5 months ago
Arve Knudsen c3793f2b32 Merge remote-tracking branch 'prometheus/main' into arve/wlog-histograms
5 months ago
Björn Rabenstein 2e58d46522
Merge pull request #13662 from prometheus/nhcb
5 months ago
Bryan Boreham 348f7f8d0c
Merge pull request #14341 from charleskorn/charleskorn/cleanup-pending-read
5 months ago
Ben Ye 246b7c6a5c
TSDB: Change block populator to accept postings index function (#14213)
5 months ago
Ben Ye 5585a3c7e5
tsdb: expose hook to customize block querier (#14114)
5 months ago
Charles Korn 2c5e88748e
Fix issue where pending OOO read can be left dangling if creating querier fails
5 months ago
🌲 Harry 🌊 John 🏔 d5f6887294 Pass limit param as hint to storage.Querier
5 months ago
Jeanette Tan dda5f48c9e Merge branch 'main' into nhcb-review-2
5 months ago
Oleg Zaytsev fd1a89b7c8
Pass affected labels to `MemPostings.Delete()` (#14307)
5 months ago
Ben Ye 0e6fca8e76 add unit test
6 months ago
Ben Ye e7db2e30a4 fix check context cancellation not incrementing count
6 months ago
Ben Ye 5a218708f1
tsdb: Extend compactor interface to allow compactions to create multiple output blocks (#14143)
6 months ago
Sebastian Rabenhorst 05380aa0ac
agent db: make rejecting ooo samples configurable (#14094)
6 months ago
Oleg Zaytsev 64a9abb8be
Change LabelValuesFor() to accept index.Postings (#14280)
6 months ago
Bryan Boreham c5d923aa7c
Merge pull request #14279 from colega/fix-label-names-for-not-found
6 months ago
Oleg Zaytsev 10a3c7220b
`MemPostings.PostingsForLabelMatching()`: don't hold the mutex while matching (#14286)
6 months ago
Oleg Zaytsev 2dc177d8af
`MemPostings.Delete()`: reduce locking/unlocking (#13286)
6 months ago
Oleg Zaytsev d0d361da53
headIndexReader.LabelNamesFor: skip not found series
6 months ago
Jeanette Tan 14f8dded39 Merge branch 'main' into nhcb
6 months ago
Jeanette Tan 9adc1699c3 fix according to code review
6 months ago
Ben Ye 8a08f452b6
tsdb: Allow passing a custom compactor to override the default one (#14113)
6 months ago
Bryan Boreham 42b546a43d
tsdb: add details to duplicate sample error (#13277)
6 months ago
Arve Knudsen b8b9015e38 tsdb/index: Fix TestReader_PostingsForLabelMatchingHonorsContextCancel
6 months ago
Bryan Boreham 3ee52abb53 [ENHANCEMENT] TSDB: Save map lookup on validation
6 months ago
Bryan Boreham 7d98487447 [ENHANCEMENT] TSDB: let Resize re-use buffer
6 months ago
Bryan Boreham c0bb156eca [ENHANCEMENT] TSDB: Eliminate pointer when storing exemplars
6 months ago
Bryan Boreham 3eb5581877 [ENHANCEMENT] TSDB: Reduce map lookups on exemplar index
6 months ago
Bryan Boreham f0c50b5a66 [Test] TSDB: BenchmarkResizeExemplar multiple per series
6 months ago
Bryan Boreham 929fbf860e [Test] TSDB: let BenchmarkAddExemplar reuse slots
6 months ago
Ben Ye 6683895620
optimize regex matching for empty label values in posting match (#14075)
6 months ago
Arve Knudsen 694f717dc4 Watcher.readSegment: Only consider unknown rec types failures
6 months ago
Arve Knudsen a4942ffa8c Merge remote-tracking branch 'prometheus/main' into arve/wlog-histograms
6 months ago
Arve Knudsen b2396c0c8f Upgrade to golangci-lint v1.59.0
6 months ago
Arve Knudsen 90145fa884 Merge remote-tracking branch 'prometheus/main' into arve/wlog-histograms
6 months ago
Alan Protasio 8894d65cd6
Fix head stats and hooks when replaying a corrupted snapshot (#14079)
6 months ago
Björn Rabenstein 3119b8a055
Merge pull request #13218 from machine424/ro-promtool
6 months ago
Oleg Zaytsev fe9cb5a803
Check context every 128 labels instead of 100 (#14118)
6 months ago
Arve Knudsen 5ca56eeb6b
tsdb/index: Refactor Reader tests (#14071)
7 months ago
Oleksandr Redko f10c3454e9 Enable perfsprint linter and fix up code
7 months ago
György Krajcsovits b215a41be4 tsdb/index/postings: fix missing lock unlock
7 months ago
George Krajcsovits fdaafdb041
tsdb: check for context cancel before regex matching postings (#14096)
7 months ago
Jeanette Tan f028496133 Merge branch 'main' into nhcb
7 months ago
Arve Knudsen f094dd50e0 Merge remote-tracking branch 'prometheus/main' into arve/wlog-histograms
7 months ago
Arve Knudsen 5c4310aa37
[ENHANCEMENT] TSDB: Optimize querying with regexp matchers
7 months ago
Arve Knudsen 90f08de96a Merge remote-tracking branch 'prometheus/main' into arve/wlog-histograms
7 months ago
Arve Knudsen d699dc3c77
Fix language in docs and comments (#14041)
7 months ago
Arve Knudsen f1e4c33943 Merge remote-tracking branch 'prometheus/main' into arve/wlog-histograms
7 months ago
Arve Knudsen 108a6bc9f6 tsdb/chunkenc.Pool: Refactor Get and Put
7 months ago
Jeanette Tan 796b1bbfde Merge branch 'main' into nhcb
7 months ago
Arve Knudsen fb6a45f06b tsdb/wlog: Only treat unknown record types as failure
7 months ago
Alan Protasio d15869af32
Avoid creating new slices for labels values on postings for matchers (#13958)
7 months ago
György Krajcsovits bcafa5f1f9 Merge remote-tracking branch 'upstream/main' into update-nhcb
7 months ago
Arthur Silva Sens b5b5e1e5ae
Merge pull request #13919 from GiedriusS/dont_forget_to_unregister
7 months ago
Giedrius Statkevičius bdf490726a tsdb/wlog: add test for metrics unregistering
7 months ago
machine424 c5a1cc9148
chore(tsdb): add a sandboxDir to DBReadOnly, the directory can be used for transient file writes.
8 months ago
Giedrius Statkevičius 3b8fe00767 tsdb/wlog: unregister metrics on WL close
8 months ago
Matthieu MOREL 6f595c6762
golangci-lint: enable whitespace linter (#13905)
8 months ago
Jonathan Halterman 633224886a
Write out of order hint when initially creating meta file (#13894)
8 months ago
Łukasz Mierzwa 277f04f0c4
Stop compactions if there's a block to write (#13754)
8 months ago
Bryan Boreham fc567a1df8
Merge pull request #13889 from komisan19/refactor/utilize_standard_functions_max/min
8 months ago
Julien 8eb9228af8
Merge pull request #13864 from yeya24/expose-compactor-metrics
8 months ago
Jonathan Halterman 113938aeb8
Log out of order when writing a block (#13888)
8 months ago
komisan19 0249e080b4 refactor: utilize standard functions max/min
8 months ago
Nicolas Takashi 8125634086
[refactor] moving mergedOOOChunks Iterator (#13881)
8 months ago
carehabit a672662073
all: fix some typos (#13863)
8 months ago
Ben Ye ded35ef20d expose compactor metrics
8 months ago
Nicolas Takashi 0b762db154
[refactor] moving mergedOOOChunks to ooo_head_read
8 months ago
György Krajcsovits 2a4aa085d2 Merge branch 'main' into nhcb
8 months ago
George Krajcsovits 4eab18abd6
[nhcb branch] Use single bit to differentiate between optimized bounds and floats (#13828)
8 months ago
Arve Knudsen 35aab01de0 tsdb/wlog.Checkpoint: Handle also float histograms
8 months ago
Bartlomiej Plotka de05d5e11b
Merge pull request #13776 from aknuds1/arve/checkpoint-histogram-samples
8 months ago
Bartlomiej Plotka 25578f2b22
[test] Merge pull request #13790 from aknuds1/arve/retention-commit
8 months ago
Nick Pillitteri 481f14e1c0
TSDB: Don't rely on integer overflow in head compaction check (#13755)
8 months ago
Ben Ye ceca6c4716
[ENHANCEMENT] TSDB: Log more statistics during startup (#13838)
8 months ago
Bryan Boreham 78c0fd2f4d
Merge pull request #13799 from machine424/wbl
8 months ago
Bryan Boreham 080d440bf8 Merge remote-tracking branch 'origin/main' into pr/13461
8 months ago
György Krajcsovits a3d1a46eda Merge branch 'main' into nhcb
8 months ago
zenador 4acbb7dea6
Add custom buckets to native histogram chunks encoding (#13706)
8 months ago
machine424 2a2e2ed28b
chore(tsdb): set the wbl to nil as well in DBReadOnly.loadDataAsQueryable
8 months ago
Arve Knudsen 07332f7427 TestTimeRetention: Split into two sub-tests
8 months ago
Arve Knudsen af694dc295 Merge TestDB_BeyondTimeRetention into TestTimeRetention
8 months ago
Arve Knudsen 9c7a734063 tsdb.BeyondTimeRetention: Fix comment and test at retention duration
8 months ago
Bryan Boreham a0e93e403e
Merge pull request #13764 from bboreham/remove-deprecated-wal
9 months ago
Darshan Chaudhary b7047f7fcb
Fix retention boundary so 2h retention deletes blocks right at the 2h boundary (#9633)
9 months ago