Commit Graph

234 Commits (41f3eeb04874baabf7331579d41a93a6b1413216)

Author SHA1 Message Date
Mateusz Gozdek 1a6c2283a3 Format Go source files using 'gofumpt -w -s -extra'
3 years ago
beorn7 a9008f5423 Merge branch 'main' into sparsehistogram
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
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 10d4cb6dc0
Merge remote-tracking branch 'upstream/main' into release-2.30-merge
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
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
Bryan Boreham 87d909df4a
Remove symbols map from TSDB head (#9301)
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
Ganesh Vernekar 8a5d8c15e3
Do not replay checkpoint if it is covered by snapshot (#9226)
3 years ago
Ganesh Vernekar 328a74ca36
Fix bugs and add enhancements to the chunk snapshot (#9185)
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
Ganesh Vernekar ee7e0071d1
Snapshot in-memory chunks on shutdown for faster restarts (#7229)
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
Oleg Zaytsev f9482c5bf6
Clarify computeChunkEndTime's purpose (#9049)
3 years ago
Oleg Zaytsev b1ed4a0a66
LabelNames API with matchers (#9083)
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
beorn7 01957eee2b Fix interjections even more
3 years ago
Ganesh Vernekar 1acb701e5c
Fix TSDB race while reading histograms
3 years ago
Ganesh Vernekar 9f206a7a05
Fix race in TSBD while reading/writing histograms (#9051)
3 years ago
Dieter Plaetinck 99ae04bb6f add SHS chunk recoding and head cutting to head block (no tests yet)
3 years ago
Ganesh Vernekar 4c01ff5194
Bunch of fixes for sparse histograms (#9043)
3 years ago
Ganesh Vernekar f4d3af73f0
Query histograms from TSDB and unit test for append+query (#9022)
3 years ago
Ganesh Vernekar 04ad56d9b8
Append sparse histograms into the Head block (#9013)
3 years ago
Dieter Plaetinck 58917d1b76
sparsehistogram: integer types and timestamp separation (#9014)
3 years ago
Ganesh Vernekar 64bea6999e
HistogramAppender interface for sparse histograms (#9007)
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
Callum Styan 8fd73b1d28
Add Exemplar Remote Write support (#8296)
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
Bryan Boreham c7a62b95ce
GetRef() now returns the label set (#8641)
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
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
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
Marco Pracucci d8c17025df
Fix TSDB head struct dump on querier error (#8379)
4 years ago
johncming a6e18916ab
tsdb: Remove duplicate variables. (#8239)
4 years ago
Ganesh Vernekar dff967286e
Set the min time of Head properly after truncation (#8212)
4 years ago
Marco Pracucci db19e05d93
Add option to customise head chunks write buffer size (#8201)
4 years ago
Julien Pivotto 8bc369bf9b
Calculate head chunk size based on actual disk usage (#8139)
4 years ago
Bartlomiej Plotka 3d8826a3d4
MultiError: Refactored MultiError for more concise and safe usage. (#8066)
4 years ago
Julien Pivotto 4e5b1722b3
Move away from testutil, refactor imports (#8087)
4 years ago
Bartlomiej Plotka 2fe1e9fa93
Create a checkpoint only at the end of Compact call (#8067)
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
garanews c38816828f
fix few typo (#8023)
4 years ago
Brian Brazil 073e93c768
Gracefully handle unknown WAL record types. (#8004)
4 years ago
Max Neverov 7e1c27b853
Add tsdb startup duration metric (#7737)
4 years ago
Xiaochao Dong a282d25099
tsdb: remove duplicate values set to reduce memory usage(map overhead) (#7915)
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
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
Zhou Hao 40ace418d1
fix misspell (#7764)
4 years ago
johncming ac677ed8b3
promql: delete redundant return value. (#7721)
4 years ago
Bartlomiej Plotka e6d7cc5fa4
tsdb: Added ChunkQueryable implementations to db; unified MergeSeriesSets and vertical to single struct. (#7069)
4 years ago
Annanay 9bba8a6eae Merge branch 'master' into appender-context
4 years ago
Annanay 89129cd39a Address comments
4 years ago
Javier Palomo Almena 348ff4285f
tsdb: Replace sync/atomic with uber-go/atomic in tsdb (#7659)
4 years ago
Julien Pivotto ffc925dd21
TSDB: Error when we commit/rollback twice (#7593)
4 years ago
Krasimir Georgiev ccab2b30c9
Test no panic after a WAL corruption (#7625)
4 years ago
Krasi Georgiev d30492cbb0 Avoid panic when the headChunk is nil during isolation.
4 years ago
Ganesh Vernekar 1760c7474c
Replay m-map chunks irrespective of WAL (#7589)
4 years ago
Ganesh Vernekar ea013343ca
Log when starting to create a checkpoint (#7581)
4 years ago
Bartlomiej Plotka 823b218e1b
Fixed race between compact (gc, populate) and head append causing unknown symbol error. (#7560)
4 years ago
Bartlomiej Plotka 492061b24c
Revert "Fix unknown symbol error during head compaction (#7526)" (#7556)
4 years ago
Ganesh Vernekar 30505a202a
Fix unknown symbol error during head compaction (#7526)
4 years ago
Harkishen Singh f32307b656
Increments WAL corruption metric on WAL corruption during checkpointing (#7491)
4 years ago
Ganesh Vernekar 082c17b691
Introduce SortedLabelValues/LabelValues to speedup queries for high cardinality (#7448)
4 years ago
Peter Štibraný ff80690a6e
Optimise lowWatermark in Isolation (#7332)
5 years ago
Jess G fdc49fae5b
Added time range parameters to labelNames API (#7288)
5 years ago
Krasimir Georgiev 09df8d94e0
More explicit chunks and head error handling. (#7277)
5 years ago
Ganesh Vernekar 1c99adb9fd
Callbacks for lifecycle of series in TSDB (#7159)
5 years ago
Ganesh Vernekar d4b9fe801f
M-map full chunks of Head from disk (#6679)
5 years ago
Ben Ye 1e4e37144d
Fixed wrongly handled not ready TSDB on web and API. (#7182)
5 years ago
Julien Pivotto fc3fb3265a
Merge pull request #7145 from prometheus/release-2.17
5 years ago
Julien Pivotto ed1852ab95
TSDB: Isolation: avoid creating appenderId's without appender (#7135)
5 years ago
Marek Slabicki 8224ddec23
Capitalizing first letter of all log lines (#7043)
5 years ago
Brian Brazil cd73b3d33e
Reduce how much old WAL we keep around. (#7098)
5 years ago
Julien Pivotto ceef10cee4 Reset comment
5 years ago
Julien Pivotto 653f343547 Revert head posting optimization
5 years ago
Julien Pivotto 8907ba6235 Make TSDB use storage errors
5 years ago
Julien Pivotto 0f9e78bd88
tsdb: fix races around head chunks (#6985)
5 years ago
Björn Rabenstein d80b0810c1
Move crucial actions to defer (#6918)
5 years ago
beorn7 f6f4fd6556 tsdb: Do a full rollback upon commit error
5 years ago
beorn7 0193b746b1 Defer call to iso.closeAppend
5 years ago
Ganesh Vernekar 2cc32c332d Log WAL replay duration
5 years ago
Julien Pivotto ed623f69e2
tsdb: don't allow ingesting empty labelsets (#6891)
5 years ago
beorn7 d9af11e636 Do not attempt isolation for appendID == 0
5 years ago
beorn7 7f30b0984d Implement isolation
5 years ago
beorn7 6b8181370f Fix punctuation nits
5 years ago
Julien Pivotto 52630ad0c7 Make head Postings only return series in time range
5 years ago
Brian Brazil cebe36c7d5 Make head Postings only return series in time range
5 years ago
Bartlomiej Plotka 34426766d8 Unify Iterator interfaces. All point to storage now.
5 years ago
Ganesh Vernekar 6f1d2ec73e
Break DB.Compact and DB.compactHead and DB.compactBlocks. Add DB.CompactHead.
5 years ago
Marco Pracucci 0703dae7cc
Compact TSDB head chunks after being cut, to reduce inuse memory
5 years ago
Thor 17d8c49919
made stripe size configurable (#6644)
5 years ago
Ganesh Vernekar 21a5cf5d1d
Bring back tombstones to Head block (#6542)
5 years ago
Julien Pivotto 46d18112a3 tsdb: error on series with duplicate labels (#6664)
5 years ago
Brian Brazil 4708915ac6 Replace StringTuples with []string
5 years ago
Brian Brazil e9ede51753 Remove last vestiges of never used composite index code.
5 years ago
Josh Soref 91d76c8023 Spelling (#6517)
5 years ago
Brian Brazil d782387f81
Stream symbols during compaction. (#6468)
5 years ago
Brian Brazil 767fa704b6 Load only some offsets into the symbol table into memory.
5 years ago
Brian Brazil 48d25e6fe7 Reduce memory used by postings offset table.
5 years ago
Tom Wilkie de0a772b8e Port tsdb to use pkg/labels. (#6326)
5 years ago
Chris Marchbanks c5b3f0221f Decode WAL in Separate Goroutine (#6230)
5 years ago
Sharad Gaur e94503ff5c Head Cardinality Status Page (#6125)
5 years ago
Krasi Georgiev 81d284f806
Merge the 2.13 release branch to master (#6117)
5 years ago
Ganesh Vernekar 4dfc7a2e77
Remove unnecessary lock in loadWAL (#6107)
5 years ago
Ganesh Vernekar 53ea6d6390
Allocate the shards only once while reading WAL (#6093)
5 years ago
Callum Styan 3344bb5c33 Move WAL watcher code to tsdb/wal package. (#5999)
5 years ago
li mengyang 1c6d2194c4 fix spelling mistakes in docs (#5952)
5 years ago
Ganesh Vernekar 5ecef3542d
Cleanup after merging tsdb into prometheus
5 years ago
Ganesh Vernekar 7cf09b0395
Moving tsdb into its own subdirectory
5 years ago