Commit Graph

1229 Commits (26886d6d95fbf290df1526cc2a51355da611f8be)

Author SHA1 Message Date
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
5 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
Arve Knudsen cef1025ea8 tsdb/wlog.Checkpoint: Fix counting of histogram samples
9 months ago
Bryan Boreham d45b5deb75 TSDB: move function only used in tests
9 months ago
Bryan Boreham 3274cac0d3 TSDB: remove unused function
9 months ago
Arve Knudsen 1de49d5b69
Remove unused function tsdb/chunks.PopulatedChunk (#13763)
9 months ago
Bryan Boreham 87edf1f960 [Cleanup] TSDB: Remove old deprecated WAL implementation
9 months ago
Bryan Boreham d08f054950
[ENHANCEMENT] TSDB: Check CRC without allocating (#13742)
9 months ago
carrychair 856f6e49c8 fix function and struct name
9 months ago
Björn Rabenstein 9acae57937
Merge pull request #13681 from krajorama/native-latency-histograms
9 months ago
Bryan Boreham bbe39af99f
tsdb: zero out Labels and memSeries pointers in pool (#13712)
9 months ago
György Krajcsovits 4d4d822c36 Add native histograms to latency/duration metrics
9 months ago
machine424 f477e0539a
Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21
9 months ago
Bryan Boreham 925134e6de tsdb tests: make work with labels SymbolTable
9 months ago
Bryan Boreham 93b72ec5dd tsdb: create SymbolTables for labels as required
9 months ago
Bryan Boreham 4d6bb2e0e4
Merge pull request #13628 from bboreham/cleanup-13583
9 months ago
George Krajcsovits c6c8f63516
Merge pull request #13607 from fionaliao/ooo-samples-appended-type
9 months ago
Bryan Boreham 6ed56c9f04 WAL watcher: improve comments
9 months ago
Bryan Boreham a975a83079 tsdb: clean up Watcher debug messages
9 months ago
Bryan Boreham 78f46bccca tsdb/wlog tests: remove unnecessary sleep check
9 months ago
Callum Styan 0c71230784
fix bug that would cause us to endlessly fall behind (#13583)
9 months ago
Fiona Liao 841a133514 Move histogramsAppended to be more consistent
9 months ago
Fiona Liao 52389647b2 Add type label to outOfOrderSamplesAppended metric
9 months ago
Bryan Boreham c0e36e6bb3 Standardise exemplar label as "trace_id"
10 months ago
Bryan Boreham 12cac5bd5c tsdb tests: use go-cmp instead of DeepEquals
10 months ago
Bryan Boreham 17f48f2b3b Tests: use replacement DeepEquals in more places
10 months ago
Bryan Boreham 39af788dbd Tests: use replacement DeepEquals using go-cmp
10 months ago
Peter Štibraný e2b9cfeeeb
Enforce chunks ordering when writing index. (#8085)
10 months ago
Bryan Boreham 98c4889029
Merge pull request #9298 from Creatone/creatone/use-testify
10 months ago
Mikhail Fesenko 419dd265cc
Fix strange code, add messages to code brought in #8106 (#13509)
10 months ago
Bryan Boreham 16e68c01e4 tests: remove err from message when testify prints it already
10 months ago
Mikhail Fesenko 5f2c3a5d3e
Small improvements, add const, remove copypasta (#8106)
10 months ago
Paweł Szulik 5961f78186 Refactor tsdb tests to use testify.
10 months ago
Bryan Boreham 34230bb172 tsdb/wlog: close segment files sooner
10 months ago
Bryan Boreham cd4562d3a6
Merge pull request #13473 from bboreham/pure-mutex
10 months ago
Marco Pracucci 501bc6419e
Add ShardedPostings() support to TSDB (#10421)
10 months ago
Bryan Boreham 66237c1996 tsdb: use cheaper Mutex on series
10 months ago
Marco Pracucci ec9cada56e
Remove unused isRegexMetaCharacter()
10 months ago
Marco Pracucci 515890ec53
Use Matcher.SetMatches()
10 months ago
Marco Pracucci a1a45990a2
Fix TestPostingsForMatcher
10 months ago
Bryan Boreham b9eab6e4b8
tsdb: simplify internal series delete function (#13261)
10 months ago
Bryan Boreham 3f30ad3cc2
Merge pull request #13015 from bboreham/smaller-txring
10 months ago
Arve Knudsen ba7012ec6a
TestHeadLabelValuesWithMatchers: Add test case (#13414)
10 months ago
Filip Petkovski 583f3e587c
Optimize histogram iterators (#13340)
10 months ago
Oleg Zaytsev ed172a6667
Optimize label values with matchers by taking shortcuts (#13426)
10 months ago
Julien Pivotto f52605b584
Merge pull request #13415 from aknuds1/arve/test-label-values-with-matchers-one-more
10 months ago
tyltr f97fa2736c remove obsolete build tag
11 months ago
Arve Knudsen 8598150f48 TestLabelValuesWithMatchers: Add test case
11 months ago
Marco Pracucci 7852a7c516
Fix regressions introduced by #13242
11 months ago
Giedrius Statkevičius b695e069b8
tsdb/main: wire "EnableOverlappingCompaction" to tsdb.Options (#13398)
11 months ago
Ben Kochie 17920623e7
Merge pull request #13391 from GiedriusS/compact_merge_func
11 months ago
Giedrius Statkevičius 3a48adc54f tsdb: add enable overlapping compaction
11 months ago
Giedrius Statkevičius 9b759135d1 tsdb/compact: fix passing merge func
11 months ago
Giedrius Statkevičius 61b4080a14
tsdb/{index,compact}: allow using custom postings encoding format (#13242)
11 months ago
Bryan Boreham bad3f23f23 agent: add BenchmarkCreateSeries
11 months ago
Bryan Boreham e64d7d8928 agent: make the global hash lookup table smaller
11 months ago
Bryan Boreham 252031c86f Revert "Adding small test update for temp dir using t.TempDir (#13293)"
11 months ago
Mile Druzijanic 2ddb3596ef
Adding small test update for temp dir using t.TempDir (#13293)
11 months ago
Björn Rabenstein 6b8e945388
Merge pull request #13289 from fpetkovski/fix-histogram-reuse
11 months ago
Bryan Boreham 8065bef172 Move metric type definitions to common/model
11 months ago
Filip Petkovski 1f69dcfa6b
Fix reusing float histograms
12 months ago
Bryan Boreham d0c2d9c0b9
Merge pull request #12878 from bboreham/loser-tree
12 months ago
Björn Rabenstein 928d07e3bd
Merge branch 'main' into arve/typos
12 months ago
Giedrius Statkevičius f36b56a62c
tsdb: remove unused option (#13282)
12 months ago
Matthieu MOREL 8f6cf3aabb tsdb: use Go standard errors
12 months ago
Arthur Silva Sens 5082655392
Append Created Timestamps (#12733)
12 months ago
Bryan Boreham ab3a47b489 postings: use Loser Tree for merge
12 months ago
Bryan Boreham ee700151a3 tsdb/index: add benchmark for Postings.Merge
12 months ago
Filip Petkovski 10a82f87fd
Enable reusing memory when converting between histogram types
12 months ago
Matthieu MOREL 9c4782f1cc
golangci-lint: enable testifylint linter (#13254)
12 months ago
Arve Knudsen 237bfea46b `chunks.Reader`: Fix typo in ChunkOrIterable doc string.
12 months ago
Matthieu MOREL 998fafe679
tsdb/wlog: use Go standard errors (#13144)
12 months ago
Julien Levesy e4ec263bcc
fix(wlog/watcher): read segment synchronously when not tailing (#13224)
1 year ago
Julien Levesy 501f514389
feat(tsdb/agent): notify remote storage when commit happens (#13223)
1 year ago
Oleksandr Redko 2a75604f8e
Enable default revive rules (#13068)
1 year ago
Fiona Liao b8bcaef14d
Fix histogram append errors (#13201)
1 year ago
Fiona Liao ce126230e7
Fix chunks iterator bug when tombstone covers a whole chunk (#13209)
1 year ago
Xiaochao Dong 28d8f1650c
tsdb: Make sure the cache for postings cardinality properly honors the label name (#12653)
1 year ago
Arve Knudsen 1200c89d0c
Fix tsdb.stripeSeries.gc so it handles conflicts properly (#13195)
1 year ago
Fiona Liao 5bee0cfce2
Change `ChunkReader.Chunk()` to `ChunkOrIterable()`
1 year ago
Arve Knudsen ecc37588b0
tsdb: seriesHashmap.set by making receiver a pointer (#13193)
1 year ago
Charles Korn 59844498f7
Fix issue where queries can fail or omit OOO samples if OOO head compaction occurs between creating a querier and reading chunks (#13115)
1 year ago
Bryan Boreham f13bc1a5c9
Merge pull request #13040 from bboreham/smaller-stripeseries
1 year ago
Oleg Zaytsev f997c72f29
Make head block ULIDs descriptive (#13100)
1 year ago
Julien Pivotto 1b84c01b76
Merge pull request #13143 from mmorel-35/patch-3
1 year ago
Julien Pivotto 9cb96ad2ea
Merge pull request #13142 from mmorel-35/patch-2
1 year ago
Julien Pivotto 58eca19ac0
Merge pull request #13141 from mmorel-35/patch-1
1 year ago
zenador 32ee1b15de
Fix error on ingesting out-of-order exemplars (#13021)
1 year ago
Matthieu MOREL d7c3bc4cb0
tsdb/tsdbutil: use Go standard errors
1 year ago
Matthieu MOREL e60a508dd8 tsdb/errors: fix errorlint linter
1 year ago
Matthieu MOREL e3041740e4 tsdb/fileutil: use Go standard errors
1 year ago
Matthieu MOREL dd8871379a remplace errors.Errorf by fmt.Errorf
1 year ago
Bryan Boreham 1bfb3ed062
Labels: reduce allocations when creating from TSDB WAL (#13044)
1 year ago
Julien Pivotto b718dca70b
Merge pull request #13108 from mmorel-35/patch-2
1 year ago
Julien Pivotto 3173feb5ef
Merge pull request #13107 from mmorel-35/patch-1
1 year ago
Julien Pivotto 90ed7b08dc
Merge pull request #13124 from mmorel-35/patch-5
1 year ago
Julien Pivotto afc57eb306
Merge pull request #13109 from mmorel-35/patch-3
1 year ago
Julien Pivotto b6274ee747
Merge pull request #13114 from mmorel-35/patch-4
1 year ago
Julien Pivotto 7bcae56b6e
Merge pull request #13130 from mmorel-35/patch-6
1 year ago
Julien Pivotto f53af5c849
Merge pull request #13131 from mmorel-35/patch-7
1 year ago
Julien Pivotto 17fe6bc296
Merge pull request #13133 from mmorel-35/patch-8
1 year ago
Bryan Boreham 65a443e6e3 TSDB: initialize conflicts map only when we need it.
1 year ago