Commit Graph

566 Commits (2836e5513f1bc591535a859f5d41154a75e7c6bc)

Author SHA1 Message Date
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
Oleg Zaytsev 14cb8d8696
Use ExpandPostings() in NewPostingsCloner()
3 years ago
Dieter Plaetinck d5afe0a577
TSDB: Use a dedicated head chunk reference type (#9501)
3 years ago
Oleg Zaytsev 3dd18a1ece
Test that approxBytesPerEntry const is correct
3 years ago
Christian Simon 50c1060328
Implement PostingsCloner and implement promise/future pattern for PostingsForMatchers (#14)
3 years ago
Cyril Tovena 9173cade01
Merge pull request #15 from grafana/improvesetmatches
3 years ago
Cyril Tovena ce28912439
Fixes a test now that we support more setMatches.
3 years ago
Peter Štibraný b3ae917f96
Merge pull request #17 from grafana/symbols-cleanup
3 years ago
Cyril Tovena 92736182ce
Adding benchmark.
3 years ago
Peter Štibraný b7b70066ae Address review feedback.
3 years ago
Ganesh Vernekar e37ff8f6b6
Merge remote-tracking branch 'upstream/main' into sync
3 years ago
Peter Štibraný d116268e59 Always include empty symbol in the symbol table.
3 years ago
Peter Štibraný 9a50267ea5 Delete symbols files.
3 years ago
Ganesh Vernekar 10d4cb6dc0
Merge remote-tracking branch 'upstream/main' into release-2.30-merge
3 years ago
Peter Štibraný 259e09fe5f When doing compaction with splitting, only use symbols from series that belong to given sharded block.
3 years ago
Cyril Tovena bd4d997bee
lint
3 years ago
Cyril Tovena c751cfbfce
Improve `findSetMatches` to support concatenation.
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 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
Peter Štibraný 57daf79192 More review feedback.
3 years ago
Peter Štibraný db7fa7621c Use <ix+1>_of_<shardCount> formatting for better readibility.
3 years ago
Peter Štibraný 861f9083d8 Fix directory cleanup in case of compaction failure.
3 years ago
Peter Štibraný ffd281ab9d Address feedback.
3 years ago
Peter Štibraný 58dab3de8a Source blocks are deletable only if they are ALL empty.
3 years ago
Peter Štibraný 336f4260db Removed commented code.
3 years ago
Peter Štibraný 006c2d7d55 All output blocks will have the same timestamp.
3 years ago
Bryan Boreham 1fb3c1b598
Replace calls to strings.Compare (#9397)
3 years ago
Peter Štibraný 63dbb1c69a Make lint happy.
3 years ago
Peter Štibraný 78396b67dd Compactor with support for splitting input blocks into multiple output blocks.
3 years ago
Ganesh Vernekar 2bcd9f2f69
Link 2 more TSDB blog posts in tsdb/README.md (#9371)
3 years ago
Ganesh Vernekar 84f8307aa1
Merge remote-tracking branch 'upstream/main' into codesome/syncprom
3 years ago
Darshan Chaudhary 1f688657bf
Call delete on head if interval overlaps (#9151)
3 years ago
Marco Pracucci 8708b2d086
Update upstream Prometheus
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 35b1a82594
Exemplars in snapshot (#9255)
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
Marco Pracucci 6c38feef8e
Fixed BenchmarkLoadWAL
3 years ago
Marco Pracucci 9537ca8b84
Merged upstream
3 years ago
Marco Pracucci 175efada22
Avoid deadlock when processing duplicate series record (#9170) (#8)
3 years ago
Marco Pracucci fbe211d3a8
Do not break exported functions signatures (#6)
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
Marco Pracucci 481299f4a5
Added series hash cache support to TSDB (#5)
3 years ago
Marco Pracucci a3ad212658
Improve sharding tests and comments (#4)
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
Marco Pracucci 7b0d798332
Added sharding support to Querier.Select() (#1)
3 years ago
Julien Pivotto cab96a06ef
Merge release 2.29 in main (#9196)
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 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
Martin Disibio 1bcd13d6b5
Exemplar resize (#8974)
3 years ago
ide-rea 14b24d15b0
update checkpoint replay status (#8898)
3 years ago
Bryan Boreham dc8f505595
tsdb: coalesce lock/unlock operations for append (#9061)
3 years ago
Oleg Zaytsev 40126a8494
Use binary literals for xor chunk encoding
3 years ago
Julien Pivotto fa6b2897f0
Merge pull request #8956 from LeviHarrison/fix-tsdb-test-flake
3 years ago
Levi Harrison 437c470c40 Added ignore
3 years ago
Levi Harrison 4a4882d4c7 Replace godoc.org links
3 years ago
Julien Pivotto b1c179be85
Fix main build (#8948)
3 years ago
Julien Duchesne 8855c2e626
Add `prometheus_tsdb_clean_start` metric (#8824)
3 years ago
Levi Harrison b5f6f8fb36 Switched to go-kit/log
4 years ago
Levi Harrison 7bc11dcb06
React UI: Add Starting Screen (#8662)
4 years ago
Oleg Zaytsev 6d99731303
Single literal regexp value testcase for querier
4 years ago
ide-rea ef584a9df6
Improve wal.go segments sequential validation (#8859)
4 years ago
kjinan e1370eecde typos correct
4 years ago
Julien Pivotto ea33dbf80f
Merge pull request #8822 from kcx2366425574/main
4 years ago
Ben Ye 0a8912433a
allow compact series merger to be configurable (#8836)
4 years ago
Matthias Loibl 7e7efaba32
storage: Split chunks if more than 120 samples (#8582)
4 years ago
kjinan 24869ff2d0 typos correct
4 years ago
kcx2366425574 be9c870b06 remove the param that is not used
4 years ago
ide-rea 277bac622a
validate exemplar labelSet length first (#8816)
4 years ago
Callum Styan 8fd73b1d28
Add Exemplar Remote Write support (#8296)
4 years ago
Marco Pracucci 4b49ffbad5
Stop the bleed on chunk mapper panic (#8723)
4 years ago
Chris Marchbanks 7c7dafc321
Do not snappy encode if record is too large (#8790)
4 years ago
Ben Ye 8f05cd8f9e
tsdb: move exemplar series labels to index entry (#8783)
4 years ago
Ben Ye 9e8df5ade9
check latest exemplar timestamp (#8782)
4 years ago
Fiona Liao 9b83d8330a
Fix memSafeIterator.Seek() (#8748)
4 years ago
Marco Pracucci 52df5ef7a3
TSDB: do not allocate exemplars buffer if exemplars are disabled (#8746)
4 years ago
Bartlomiej Plotka 80545bfb2e
Instrumented circular exemplar storage. (#8712)
4 years ago
nberkley f9e2dd0697
Add support for smaller block chunk segment allocations (#8478)
4 years ago
Christian Simon 9781e51f59
Correct spelling of "iterable" (#8713)
4 years ago
Guangwen Feng 7985c4e6af Fix golint issue caused by typo
4 years ago
jinglina 431ea75a11
remove redundant type conversion (#8692)
4 years ago
Björn Rabenstein 9549a15c6f
Merge pull request #7675 from JessicaGreben/jg/11-retroactive-rule-eval
4 years ago
Bryan Boreham c7a62b95ce
GetRef() now returns the label set (#8641)
4 years ago
jessicagreben 8de4da3716 add changes per comments, fix tests
4 years ago
Bryan Boreham d614ae9ecf
[RFC] Add method to get reference number for TSDB Appender (#8600)
4 years ago
Marco Pracucci 6248e685b2
TSDB: optimize series creation on PreCreation() failure (#8620)
4 years ago
Callum Styan 289ba11b79
Add circular in-memory exemplars storage (#6635)
4 years ago
jessicagreben 591e719dc1 fix failing blockwriter tests
4 years ago
Bartlomiej Plotka 8bf7bc68f1
Fixed TestChunkDiskMapper_WriteChunk_Chunk_IterateChunks for go1.16 (#8538)
4 years ago
jessicagreben 78e84aed89 resolve merge conflict
4 years ago
Julien Pivotto 432d5ebc6c Rename default branch to main
4 years ago
Julien Pivotto 889dd0bbd3 Fix DB tests in the default branch
4 years ago
Tom Wilkie 7369561305
Combine Appender.Add and AddFast into a single Append method. (#8489)
4 years ago
Goutham Veeramachaneni 404d85f7a8
Add ability to set minValidTime in TSDB (#8415)
4 years ago
Chris Marchbanks bedcd88343
Compress records before checking segment size (#8501)
4 years ago
Arthur Silva Sens 6a3d55db0a
Rolling tombstones clean up (#8007)
4 years ago
Mauro Stettler 7715fe3219
Add matchers to LabelValues() call (#8400)
4 years ago
Dustin Hooten b9f0baf6ff
Combine NewHead() args into a HeadOptions struct (#8452)
4 years ago
Marcelo E. Magallon 75d86c6747 Update golangci-lint to 1.36.0
4 years ago
Goutham Veeramachaneni e572e77d90
Increase the buckets for compaction duration (#8342)
4 years ago
Ganesh Vernekar a7e446cf2d
Link blog post on TSDB queries in tsdb/README.md (#8391)
4 years ago
Marco Pracucci d8c17025df
Fix TSDB head struct dump on querier error (#8379)
4 years ago
Li Zhijian 9602933db2
Cleanup tempfiles in tests (#8179)
4 years ago
Nguyen Le Vu Long fbe960f2c1
fix: remove pre-2.21 tmp blocks on start (#8353)
4 years ago
Arthur Silva Sens 7e932637e3
Reload tsdb blocks every minute (#8340)
4 years ago
Nguyen Le Vu Long cd1dafc2fd
tsdb: Expose total number of label pairs in head in TSDB stats page (#8343)
4 years ago
Guangwen Feng e2cd6c5f57 Fix golint issue caused by typo
4 years ago
Björn Rabenstein 7889bdf16e
Merge pull request #8313 from pracucci/lower-compactor-overlapping-blocks-log
4 years ago
arthursens 8493704b9b Change seconds()*1000 to milliseconds()
4 years ago
Marco Pracucci 2b4b138244
Lowered 'Found overlapping blocks during compaction' log level
4 years ago
Ganesh Vernekar faa1554aa1
Don't call runtime.GC() after compaction (#8276)
4 years ago
Arthur Silva Sens 64a106c5dd
Logging added for when compaction takes more than the block time range (#8151)
4 years ago
johncming a6e18916ab
tsdb: Remove duplicate variables. (#8239)
4 years ago
jessicagreben ac06d0a657 merge master/resolve conflict
4 years ago
Atibhi Agrawal b317b6ab9c
Backfill from OpenMetrics format (#8084)
4 years ago
Ganesh Vernekar dff967286e
Set the min time of Head properly after truncation (#8212)
4 years ago
jessicagreben 19dee0a569 add name and labels to metric, eval all rules for each block
4 years ago
Chris Marchbanks c8f810083d
Cache label name and last value when adding series (#8192)
4 years ago
Marco Pracucci db19e05d93
Add option to customise head chunks write buffer size (#8201)
4 years ago
Bartlomiej Plotka 4513537034
Exposed DeletionIterator and CompactMetas functions. (#8161)
4 years ago
Julien Pivotto 8bc369bf9b
Calculate head chunk size based on actual disk usage (#8139)
4 years ago
jessicagreben 75654715d3 fix panics
4 years ago
jessicagreben 3ed6457dd4 use blockwriter, rm multiwriter code
4 years ago
Marco Pracucci 63be30dcee
Fixed WAL corruption on partial writes within a page (#8125)
4 years ago
Julien Pivotto 6c56a1faaa
Testify: move to require (#8122)
4 years ago
Bartlomiej Plotka 3d8826a3d4
MultiError: Refactored MultiError for more concise and safe usage. (#8066)
4 years ago
johncming 28ca0965f0
tsdb/chunkenc: fix typo of return error. (#7670)
4 years ago
Ganesh Vernekar 3245b3267b
Don't use returned DB to close resources on TSDB startup error (#8113)
4 years ago
Julien Pivotto 1282d1b39c
Refactor test assertions (#8110)
4 years ago
Julien Pivotto 4e5b1722b3
Move away from testutil, refactor imports (#8087)
4 years ago
Arthur Silva Sens c5a832b394
Close resources after failing to startup TSDB (#8031)
4 years ago
Brian Brazil fdf1c29224
Fix metric description of prometheus_tsdb_symbol_table_size_bytes. (#8080)
4 years ago
Ganesh Vernekar ce4b3ac282
Simplify TestHeadReadWriter_Truncate (#7437)
4 years ago
Ganesh Vernekar 2624d827fa
Read repair empty last file in chunks_head (#8061)
4 years ago
Bartlomiej Plotka 2fe1e9fa93
Create a checkpoint only at the end of Compact call (#8067)
4 years ago
Ganesh Vernekar d9cd913219
Add links to TSDB blog post series in tsdb/README.md (#8078)
4 years ago
Julien Pivotto 59733b1a26
TSDB: use `blocks` instead of db.blocks in condition (#8068)
4 years ago
Ganesh Vernekar 5de7d15879
Consistent naming and better names for fields in TSDB format docs (#8077)
4 years ago
jessicagreben 36ac0b68f1 merge master, fix conflicts
4 years ago
Bartlomiej Plotka 9981b3f3ee
labels: Reduce allocated memory and latency of Hash method; Added tests. (#8025)
4 years ago
Ganesh Vernekar 4ed3ec7b46
More info in mmap error message (#8058)
4 years ago
frbimo 260cd84d8f
log on empty head compaction result (#8037)
4 years ago
Gayathri Venkatesh 73e2ce1bd6
Do not ignore reload errors in compactHead (#8051)
4 years ago
Goutham Veeramachaneni 1cc02930b6
Implement series API query hint to not hit chunks (#8050)
4 years ago
Ling Jin 9145200842
tsdb: fix unkown ref in log (#8048)
4 years ago
Arthur Silva Sens 4f45e201cc
Promtool tsdb list now prints block sizes (#7993)
4 years ago
Jess G 90680b092c
Add a tsdb writer interface (#7950)
4 years ago
garanews c38816828f
fix few typo (#8023)
4 years ago
Brian Brazil 073e93c768
Gracefully handle unknown WAL record types. (#8004)
4 years ago
Ganesh Vernekar 50ae4e298b
Fix magic number in docs (#7998)
4 years ago
Ganesh Vernekar f0d87b5d86
Encode and Decode method for tombstones (#7967)
4 years ago
Max Neverov 7e1c27b853
Add tsdb startup duration metric (#7737)
4 years ago
Jorge Vallecillo 7aa5fb01bf
tsdb/chunks/head_chunks_test.go: Fix typo (#7953)
4 years ago
Tobias Klauser b5b3bc34da
tsdb/fileutil: Use FcntlFstore from golang.org/x/sys/unix (#7949)
4 years ago
Xiaochao Dong a282d25099
tsdb: remove duplicate values set to reduce memory usage(map overhead) (#7915)
4 years ago
zhulongcheng 5ea6bdca1f
tsdb: sync temporary checkpoint directory before rename (#7004)
4 years ago
johncming 75ae384192
tsdb: remove redundant fields. (#7869)
4 years ago
Ganesh Vernekar 2255b6f62f
Refactor WAL.Segments method to be part of the wal package (#6477)
4 years ago
johncming 252265fa81
tsdb/chunks: remove un-used code. (#6944)
4 years ago
Ganesh Vernekar c806262206
Fix 'chunks.HeadReadWriter: maxt of the files are not set' error (#7856)
4 years ago
Yukun Sun cfd4e05c9e
fix: return a corruption error when iterator function find a chunk that is out of sequence (#7855)
4 years ago
Max Neverov bb5c6b38e2
Fix Possible Race Condition in TSDB (#7815)
4 years ago
johncming 3e7b463908
add testcase for rangeForTimestamp. (#6454)
4 years ago
Guangwen Feng 9439b2150d
Fix golint warning caused by misspell (#7842)
4 years ago
johncming b521612042
tsdb: simplify code. (#7792)
4 years ago
gastonqiu 5a7d398d19
Chore: Log segment number when segment read failed (#7687)
4 years ago
johncming d19fc71903
tsdb: use NewRangeHead instead. (#7793)
4 years ago
Harold Dost 21a753c4e2
Make file permissions set to allow for wider umask options. (#7782)
4 years ago
Bartlomiej Plotka f16cbc20d6
tsdb: Bug fix for further continued deletions after crash deletions; added more tests. (#7777)
4 years ago
Bartlomiej Plotka 4ae2ef94e0
tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772)
4 years ago
Zhou Hao 40ace418d1
fix misspell (#7764)
4 years ago
Frederic Branczyk e0cf219f0d
tsdb: Save allocations on labels by re-using label array
4 years ago
Robert-André Mauchin ed6ce7ac98
Convert int to string using rune() (#7707)
4 years ago
Bartlomiej Plotka 28c5cfaf0d
tsdb: Moved code merge series and iterators to differen files; cleanup. No functional changes just move! (#7714)
4 years ago
johncming ac677ed8b3
promql: delete redundant return value. (#7721)
4 years ago