Commit Graph

1137 Commits (95b3c49836acc3212a98016daa21b5a199d4f6c8)

Author SHA1 Message Date
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
8 months ago
Darshan Chaudhary b7047f7fcb
Fix retention boundary so 2h retention deletes blocks right at the 2h boundary (#9633)
8 months ago
Arve Knudsen cef1025ea8 tsdb/wlog.Checkpoint: Fix counting of histogram samples
8 months ago
Bryan Boreham d45b5deb75 TSDB: move function only used in tests
8 months ago
Bryan Boreham 3274cac0d3 TSDB: remove unused function
8 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"
9 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
10 months ago
Arve Knudsen 8598150f48 TestLabelValuesWithMatchers: Add test case
10 months ago
Marco Pracucci 7852a7c516
Fix regressions introduced by #13242
10 months ago
Giedrius Statkevičius b695e069b8
tsdb/main: wire "EnableOverlappingCompaction" to tsdb.Options (#13398)
10 months ago
Ben Kochie 17920623e7
Merge pull request #13391 from GiedriusS/compact_merge_func
10 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)
12 months ago
Julien Levesy 501f514389
feat(tsdb/agent): notify remote storage when commit happens (#13223)
12 months 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
Bryan Boreham 37573d083b
Merge pull request #13056 from songjiayang/symbolCacheEntry-filed-alignment
1 year ago
George Krajcsovits acc114fe55
Fix panic during tsdb Commit (#13092)
1 year ago
Matthieu MOREL 469e415d09
Update record.go
1 year ago
Matthieu MOREL 69c07ec6ae
Update record_test.go
1 year ago
Matthieu MOREL 63691d82a5
tsdb/record: use Go standard errors package
1 year ago
Matthieu MOREL c74b7ad4fb
Update tombstones.go
1 year ago
Matthieu MOREL 118460a64f
tsdb/tombstones: use Go standard errors package
1 year ago
Matthieu MOREL 4d6d3c1715
tsdb/encoding: use Go standard errors package
1 year ago
George Krajcsovits 39a35d92bc
tsdb/head: wlog exemplars after samples (#13113)
1 year ago
Matthieu MOREL 2972cc5e8f tsdb/index: use Go standard errors package
1 year ago
Bryan Boreham e6c0f69f98 TSDB: Only pay for hash collisions when they happen
1 year ago
Bryan Boreham ce4e757704 TSDB: refine variable naming in chunk gc
1 year ago
Bryan Boreham 071d5732af TSDB: refactor cleanup of chunks and series
1 year ago
machine424 a32fbc3658
head.go: Remove an unneeded snapshot trigger that was moved in https://github.com/prometheus/prometheus/pull/9328
1 year ago
Matthieu MOREL fb48a351f0 tsdb/wlog: use Go standard errors package
1 year ago
songjiayang 443867f1aa symbolCacheEntry field type alignment, thus saving 8 bytes.
1 year ago
Arve Knudsen ae9221e152
tsdb/index.Symbols: Drop context argument from Lookup method (#13058)
1 year ago
Matthieu MOREL ece8286305 tsdb/chunk: use Go standard errors package
1 year ago
Matthieu MOREL b60f9f801e tsdb/chunkenc: use Go standard errors package
1 year ago
Matthieu MOREL 724737006d
tsdb/agent: use Go standard errors package
1 year ago
Goutham Veeramachaneni b80617a248
Merge pull request #12881 from dimitarvdimitrov/dimitar/TestQuerierIndexQueriesRace-less-synchronisation
1 year ago
Linas Medziunas ebed7d0612 Change Validate to be a method on histogram structs
1 year ago
Linas Medziunas 1f8aea11d6 Move histogram validation code to model/histogram
1 year ago
Linas Medziunas 1cd6c1cde5 ValidateHistogram: strict Count check in absence of NaNs
1 year ago
beorn7 5dca994f64 Merge branch 'release-2.48' into beorn7/release
1 year ago
Jeanette Tan 52eb303031 Refactor assigning MinTime in histogram chunks
1 year ago
Jeanette Tan 3ccaaa40ba Fix according to code review
1 year ago
György Krajcsovits 4296ecbd14 tsdb/compact_test.go: test mixed typed series with PopulateBlock
1 year ago
Jeanette Tan 27abf09e7f Fix missing MinTime in histogram chunks
1 year ago
Jeanette Tan 2f7060bd5a Expand TestPopulateWithTombSeriesIterators to test earlier deletion intervals for histogram chunks as well as time-overlapping chunks
1 year ago
Jeanette Tan 7a4a1127b7 Expand TestPopulateWithTombSeriesIterators to test min max times of chunks, including mixed chunks
1 year ago
Jeanette Tan 04aabdd7cc Refactor TestPopulateWithDelSeriesIterator unit tests to reuse more code
1 year ago
Jeanette Tan 46be85f2dc Make TestPopulateWithDelSeriesIterator tests cover histogram types and check MinTime
1 year ago
Björn Rabenstein a43669e611
Merge pull request #12928 from alexandear/ci-enable-godot
1 year ago
Julien Pivotto f568221610
Merge pull request #13057 from prometheus/release-2.48
1 year ago
Oleksandr Redko fa90ca46e5 ci(lint): enable godot; append dot at the end of comments
1 year ago
Oleksandr Redko 8e5f0387a2
ci(lint): enable nolintlint and remove redundant comments (#12926)
1 year ago
zenador 80e977aae6
Remove `NewPossibleNonCounterInfo` and minimise creating empty annotations (#13012)
1 year ago
Márcio Carôso dff1c395f6
Expose --storage.tsdb.retention.time in metric prometheus_tsdb_retention_limit_seconds (#12986)
1 year ago
Björn Rabenstein 059f7f0738
Merge pull request #12997 from prometheus/wal-samples-size
1 year ago
Bryan Boreham 90e98e0235 tsdb: create isolation transaction slice on demand
1 year ago
Bryan Boreham 6fe8217ce4 tsdb: shrink txRing with smaller integers
1 year ago
Jeanette Tan 71a36d2396 Very minor refactor of the integer overflow fix
1 year ago
Bryan Boreham 26fa2e8356 TSDB: Pre-size buffer to read samples from WAL
1 year ago
George Krajcsovits 7d7b9eacff
Fix int32 overflow issues (#12978)
1 year ago
Paschalis Tsilias 42b8f2f5fc tsdb/agent: allow ingestion of OOO samples (#12897)
1 year ago
Ganesh Vernekar 4df2f2432b Additionally wrap WBL replay error (#12406)
1 year ago
Paschalis Tsilias afab845e65
tsdb/agent: allow ingestion of OOO samples (#12897)
1 year ago
Ganesh Vernekar f5913266a1
Additionally wrap WBL replay error (#12406)
1 year ago
Oleg Zaytsev fe90dcccff
Revert ListPostings change (#12955)
1 year ago
Oleg Zaytsev 5bd8c8c561
Clarify Postings.At() contract (#12921)
1 year ago
Oleg Zaytsev 1492031ef2
Optimize ListPostings Next() (#12906)
1 year ago
Arve Knudsen de7e057d3c
tsdb: Tighten up sub-benchmark scope in BenchmarkQuerier (#12718)
1 year ago
Björn Rabenstein 0de7f39e6a
Merge pull request #12894 from linasm/linasm/test-case-for-ValidateHistogram
1 year ago
Linas Medziunas 1aad4004c3 Additional test case for ValidateHistogram
1 year ago
Bryan Boreham 6dcbd653e9
tsdb: register metrics after Head is initialized (#12876)
1 year ago
Goutham Veeramachaneni 86729d4d7b
Update exp package (#12650)
1 year ago
Björn Rabenstein f8dd8770ac
Merge pull request #12757 from bboreham/reuse-bufiter
1 year ago
Dimitar Dimitrov 1155d736b6
Improve sensitivity of TestQuerierIndexQueriesRace
1 year ago
Dimitar Dimitrov 6f1284ac93 Fix exit condition of TestQuerierIndexQueriesRace
1 year ago
Björn Rabenstein 864da019cd
Merge pull request #12874 from krajorama/outof-order-chunks
1 year ago
Björn Rabenstein 9071913fd9
Merge pull request #12831 from aknuds1/arve/posting-context
1 year ago
György Krajcsovits 9dbd100a5e Refactor solution to not repeat code
1 year ago
György Krajcsovits 96d03b6f46 Fix duplicate sample detection at chunks size limit
1 year ago
György Krajcsovits 56b3a015b6 Add regression test for duplicate detection at chunk size limit
1 year ago
Björn Rabenstein 83891135c6
Merge pull request #12838 from krajorama/fix-disappearing-span-panic
1 year ago
George Krajcsovits 3512b2d678
storage: make histogram reset handling consistent in chainSampleIterator (#12779)
1 year ago
Alan Protasio 959c98441b Add context argument to tsdb.PostingsForMatchers
1 year ago
zenador 69edd8709b
Add warnings (and annotations) to PromQL query results (#12152)
1 year ago
Arve Knudsen 156222cc50
Add context argument to LabelQuerier.LabelValues (#12665)
1 year ago
Arve Knudsen a964349e97
Add context argument to LabelQuerier.LabelNames (#12666)
1 year ago
Arve Knudsen 4451ba10b4
Add context argument to IndexReader.Postings (#12667)
1 year ago
Arve Knudsen 6ef9ed0bc3
Add context argument to DB.Delete (#12834)
1 year ago
György Krajcsovits b2fa4d910a Fix more counterResetInAnyBucket edgecases
1 year ago
Fiona Liao 4419399e4e
Do WBL mmap marker replay concurrently (#12801)
1 year ago
Shirley d3a1044354
WBL loading: don't send empty buffers over chan (#12808)
1 year ago
Arve Knudsen 6daee89e5f
Add context argument to Querier.Select (#12660)
1 year ago
Bryan Boreham f711d71aa8
Merge pull request #12798 from fionaliao/remove-duplicated-max-time
1 year ago
Fiona Liao f211fcd92d
Remove duplicated ms.mmMaxTime check in WAL
1 year ago
George Krajcsovits b6f903b5f9
Fix handling of explicit counter reset header in histograms. (#12772)
1 year ago
Dimitar Dimitrov b40865833d
PostingsForMatchers race with creating new series (#12558)
1 year ago
Bryan Boreham c5671c6d97
Merge pull request #12755 from bboreham/rangequery-benchmark-mmap
1 year ago
Bryan Boreham bdc7983956 TSDB: re-use iterator when moving between series
1 year ago
Bryan Boreham 5d22d422ab
Merge pull request #12690 from michalbiesek/feat-go-bump
1 year ago
Bryan Boreham 0d283effa8 promql: force mmap of head chunks in BenchmarkRangeQuery
1 year ago
Gregor Zeitlinger f01718262a
Unit tests for native histograms (#12668)
1 year ago
Michal Biesek 04d7b4dbee
lint: Fix `SA1019` Using a deprecated function
1 year ago
Justin Lei 8ef7dfdeeb
Add a chunk size limit in bytes (#12054)
1 year ago
beorn7 aa82fe198f tsdb: Fix histogram validation
1 year ago
Mustafa Ateş Uzun e5e51bebef
fix: error message typo
1 year ago
Julien Pivotto e3fabd5fdf
Merge pull request #12664 from prometheus/superq/cleanup_chunk_snapshots
1 year ago
SuperQ 8d38d59fc5
Cleanup temporary chunk snapshot dirs
1 year ago