Commit Graph

1387 Commits (b17dae1dab5197e311e4b58866220c5155bb3c0e)

Author SHA1 Message Date
Xiaochao Dong (@damnever) 2b7202c4cc Validate the metric names and labels in the remote write handler
2 years ago
Bryan Boreham b987afa7ef labels: simplify call to get Labels from Builder
2 years ago
Björn Rabenstein 559adab471
Merge pull request #12085 from leizor/leizor/prometheus/issues/11204
2 years ago
Oleg Zaytsev beb7d3b80f
remote.Client: store urlString
2 years ago
Justin Lei 60ad864667 Remove hacky promql.Test native histogram thing
2 years ago
Justin Lei c16b6a0185 Handle native histograms in remote read
2 years ago
Arve Knudsen bc9a82f5a1
remote: Improve some comments (#12102)
2 years ago
Arve Knudsen 435b500de7
remote: Convert to RecoverableError using errors.As (#12103)
2 years ago
Julien Pivotto 475f9984d0
Merge pull request #11787 from damnever/perf/avoid-alloc-if-no-externallabels
2 years ago
Julien Pivotto dfd2b5340e
Merge pull request #11951 from Fish-pro/chore/httpvar
2 years ago
Justin Lei af1d9e01c7
Refactor tsdbutil for tests/native histograms (#11948)
2 years ago
Fish-pro 43d77f7c41 Use http constants instead of string
2 years ago
Charles Korn 0a1de58f7e
Mark Histogram.(Positive|Negative)Spans as non-nullable.
2 years ago
Björn Rabenstein 60d763282e
Merge pull request #11864 from prometheus/beorn7/histogram2
2 years ago
beorn7 49c5b1fae4 histograms: Fix counter reset header during merging
2 years ago
beorn7 1cfc8f65a3 histograms: Return actually useful counter reset hints
2 years ago
György Krajcsovits 2d9a9cbc08 Fix storage/remote/codec ignoreing histogram reset hint
2 years ago
Bryan Boreham faac4c066d package storage: fix up test not to access Labels internals
2 years ago
Jesus Vazquez 136956cca4
Attempt to append ooo sample at the end first (#11615)
2 years ago
Marc Tudurí 721f33dbb0
histograms: Add remote-write support for Float Histograms (#11817)
2 years ago
beorn7 d121db7a65
federate: Fix PeekBack usage
2 years ago
Xiaochao Dong (@damnever) 2d61d012ff Avoid copy during remote write if external labels is empty
2 years ago
Fish-pro 6ed71a229e Use errors.Is to check for a specific error
2 years ago
Marc Tudurí 9474610baf
Support FloatHistogram in TSDB (#11522)
2 years ago
Bryan Boreham ccea61c7bf
Merge pull request #11717 from bboreham/labels-abstraction
2 years ago
Sniper91 46fb802791
reset frameBytesLeft after writing (#11689)
2 years ago
Bryan Boreham 047585360b Update package storage/remote tests for new labels.Labels type
2 years ago
Bryan Boreham abd9909595 Update package storage/remote for new labels.Labels type
2 years ago
Bryan Boreham d6b97f631a Update package storage for new labels.Labels type
2 years ago
sniper91 16738b00e3 Do no re-use result slice in chunkSetToSeriesSet
2 years ago
Bryan Boreham 0853250695 Review feedback
2 years ago
Bryan Boreham 463f5cafdd storage: re-use iterators to save garbage
2 years ago
Bryan Boreham 3c7de69059 storage: allow re-use of iterators
2 years ago
Bryan Boreham 7ce09b4e39 storage: fix BenchmarkMergeSeriesSet
2 years ago
Julius Volz 1a2c645dfa Correctly handle error unwrapping in rules and remote write receiver
2 years ago
Ganesh Vernekar 42633bd05c
Merge pull request #11485 from t00350320/prometheus-office
2 years ago
tanghengjian 982007ecab
GetRefByhash will query a label's ref with hash value rather than lset.Hash().
2 years ago
Giedrius Statkevičius d1d2566055
remote/read_handler: pool input to Marshal() (#11357)
2 years ago
Björn Rabenstein bd26ce440c
storage: Avoid duplicate function call in sampleRingIterator (#11502)
2 years ago
Ganesh Vernekar 648be89822
Merge remote-tracking branch 'upstream/main' into fix-conflict
2 years ago
Signed-off-by: Jesus Vazquez 3362bf6d79
Fix merge conflicts
2 years ago
Jesus Vazquez 775d90d5f8
TSDB: Rename wal package to wlog (#11352)
2 years ago
Jesus Vazquez e934d0f011 Merge 'main' into sparsehistogram
2 years ago
Bryan Boreham 8120af22e2 benchmarks: SetBytes takes bytes per operation
2 years ago
Bryan Boreham 3330d85ba8
Replace sort.Strings and sort.Ints with faster slices.Sort (#11318)
2 years ago
Jesus Vazquez c1b669bf9b
Add out-of-order sample support to the TSDB (#11075)
2 years ago
Ganesh Vernekar d354f20c2a
Add a feature flag to control native histogram ingestion (#11253)
2 years ago
Bryan Boreham 3029320ce6 storage/remote: in tests use labels.FromStrings
2 years ago
Bryan Boreham ad1c257899 storage: in tests use labels.FromStrings
2 years ago
Ganesh Vernekar f540c1dbd3
Add support for histograms in WAL checkpointing (#11210)
2 years ago
Ganesh Vernekar 0f4e5196c4
Implement vertical compaction for native histograms (#11184)
2 years ago
beorn7 c9fd3c235d Merge branch 'main' into sparsehistogram
2 years ago
Levi Harrison 77a7af4461
Add histogram validation (#11052)
2 years ago
Levi Harrison 0db6b072bc
Export `histogramToHistogramProto()` (#11046)
2 years ago
Paschalis Tsilias d1122e0743
Introduce TSDB changes for appending metadata to the WAL (#10972)
2 years ago
beorn7 87351f2318 prompb: Modify layout of histograms
2 years ago
Levi Harrison 08f3ddb864
Sparse histogram remote-write support (#11001)
2 years ago
beorn7 28f028e938 Merge branch 'main' into sparsehistogram
2 years ago
Matthieu MOREL d56d0a9d52
(storage): move from github.com/pkg/errors to 'errors' and 'fmt' (#10946)
2 years ago
Leonardo Zamariola 3326df42bb
Removing global state modification on unit tests (fix #10033 #10034) (#10935)
2 years ago
beorn7 40ad5e284a Merge branch 'main' into beorn7/sparsehistogram
2 years ago
Matej Gera 1dd247f68b
Remote Write: Rename confusing `walDir` parameter to `dir` (#10464)
3 years ago
Bryan Boreham 4b9f248e85
unit tests: make all Labels sorted alphabetically (#10532)
3 years ago
beorn7 3bc711e333 Merge branch 'main' into sparsehistogram
3 years ago
Matthieu MOREL e2ede285a2
refactor: move from io/ioutil to io and os packages (#10528)
3 years ago
Chris Marchbanks a11e73edda
Fix a deadlock between Batch and FlushAndShutdown (#10608)
3 years ago
beorn7 7ee1836ef5 Merge branch 'main' into sparsehistogram
3 years ago
Wilbert Guo 83a2e52bc2
Add SyncForState Implementation for Ruler HA (#10070)
3 years ago
beorn7 4210aac74a Merge branch 'main' into sparsehistogram
3 years ago
beorn7 79376c1e94 Merge branch 'release-2.33' into beorn7/release
3 years ago
Chris Marchbanks e970acb085
Fix deadlock between adding to queue and getting batch
3 years ago
Chris Marchbanks afdc1decac
Write a test that reproduces the deadlock
3 years ago
Łukasz Mierzwa a4317bf0ec
Run gofumpt on all files (#10392)
3 years ago
DrAuYueng 5a6e26556b
Add an option to use the external labels as selectors for the remote read endpoint (#10254)
3 years ago
Julien Pivotto b0d70557b7
Merge pull request #10285 from prometheus/release-2.33
3 years ago
Chris Marchbanks bfb1500a38
Fix deadlock when stopping a shard (#10279)
3 years ago
Matej Gera 2c61d29b2a
Tracing: Migrate to OpenTelemetry library (#9724)
3 years ago
Eng Zer Jun 3e67654d37
refactor: use `T.TempDir()` and `B.TempDir` to create temporary directory
3 years ago
Bryan Boreham 954c0e8020 remote_write: round desired shards up before check
3 years ago
Bryan Boreham 6d01ce8c4d remote_write: shard up more when backlogged
3 years ago
Bryan Boreham d588b14d9c remote_write: detailed test for shard calculation
3 years ago
Chris Marchbanks ba03f7fc23
Merge pull request #10102 from prometheus/update-metrics-on-rw-fails
3 years ago
beorn7 e7592fe353 sparsehistogram: Address two TODOs
3 years ago
Goutham Veeramachaneni 6696b7a5f0
Don't update metrics on context cancellation
3 years ago
Chris Marchbanks dfa5cb7462
Merge pull request #10038 from charlesxsh/fix-TestReshardRaceWithStop
3 years ago
Goutham Veeramachaneni 1af81dc5c9
Update sent timestamp when write irrecoverably fails.
3 years ago
Shihao Xia c3e7bfb813 add proper exit for loop
3 years ago
beorn7 86cc83b13c storage: iterator fixes after merge
3 years ago
beorn7 64c7bd2b08 Merge branch 'main' into sparsehistogram
3 years ago
Julien Pivotto 27343277fa
Merge release-2.32 forward into main (#10032)
3 years ago
beorn7 0ede6ae321 storage: fix bug #10027 in iterators' Seek method
3 years ago
beorn7 b042e29569 storage: expose bug in iterators #10027
3 years ago
beorn7 6f33ab2b35 Merge branch 'main' into sparsehistogram
3 years ago
Chris Marchbanks 0a8d28ea93
Merge pull request #9934 from bboreham/remote-write-struct
3 years ago
Bryan Boreham bd6436605d Review feedback
3 years ago
Sebastian Rabenhorst d8b8678bd1
Log time series details for out-of-order samples in remote write receiver (#9894)
3 years ago
detailyang 3e482c905f
fix:storage:avoid panic when iterater exhauested (#9945)
3 years ago
Bryan Boreham 50878ebe5e remote-write: buffer struct instead of interface
3 years ago
Bryan Boreham c478d6477a remote-write: benchmark just sending, on 20 shards
3 years ago
Chris Marchbanks e95d4ec3f1
Merge pull request #9830 from prometheus/batch-queues
3 years ago
Chris Marchbanks c655684142
Subtract from enqueued samples/exemplars upon send
3 years ago
Chris Marchbanks 319249f9db
Batch samples before sending them to channels
3 years ago
beorn7 68e02be963 Post-merge fixes
3 years ago
beorn7 e4e24453fa Merge branch 'main' into beorn7/merge2
3 years ago
Björn Rabenstein 4ce01e9770
storage: Rename ...Values methods to At... (#9889)
3 years ago
Björn Rabenstein d677aa4b29
storage: Consolidate iterator method names (Values -> At) (#9888)
3 years ago
Björn Rabenstein b866db009b
storage: Fix and improve the Seek method of various iterators (#9878)
3 years ago
Björn Rabenstein 7e42acd3b1
tsdb: Rework iterators (#9877)
3 years ago
Ganesh Vernekar 26c0a433f5
Support appending different sample types to the same series (#9705)
3 years ago
Matheus Alcantara e673805d67
storage/remote: use t.TempDir instead of ioutil.TempDir on tests (#9811)
3 years ago
Hu Shuai eb43437d83
Fix golint issue (#9800)
3 years ago
beorn7 5d4db805ac Merge branch 'main' into sparsehistogram
3 years ago
Dieter Plaetinck 0fac9bb859
Add basic initial developer docs for TSDB (#9451)
3 years ago
beorn7 73858d7f82 storage: histogram support in memoized_iterator
3 years ago
beorn7 9b30ca2598 promql: Support histogram in value string representation
3 years ago
beorn7 4c28d9fac7 Move to histogram.Histogram pointers
3 years ago
Mateusz Gozdek d8561dbfd8 storage/remote: make tests use separate remote write configs
3 years ago
Mateusz Gozdek 116552cc58 storage/remote: check errors from ApplyConfig in tests
3 years ago
beorn7 c954cd9d1d Move packages out of deprecated pkg directory
3 years ago
beorn7 8f92c90897 Add TODOs and some minor tweaks
3 years ago
Dieter Plaetinck cda025b5b5
TSDB: demistify SeriesRefs and ChunkRefs (#9536)
3 years ago
Ganesh Vernekar c8b267efd6
Get histograms from TSDB to the rate() function implementation
3 years ago
Marco Pracucci 9f5ff5b269
Allow to disable trimming when querying TSDB (#9647)
3 years ago
sniper f82e56fbba
fix request bytes size and continue is useless (#9635)
3 years ago
Mateusz Gozdek b7bdf6fab2 Fix imports formatting
3 years ago
Mateusz Gozdek 1a6c2283a3 Format Go source files using 'gofumpt -w -s -extra'
3 years ago
lzhfromustc 9da5382103
storage/remote: Prevent two goroutines from endless loop (#8967)
3 years ago
lzhfromustc d42be7be76
test:Fix two potential goroutine leaks (#8964)
3 years ago
Bryan Boreham 5afa606ecb
Remote-write: reuse memory for marshalling (#9412)
3 years ago
Robert Fratto bc72a718c4
Initial draft of prometheus-agent (#8785)
3 years ago
beorn7 a9008f5423 Merge branch 'main' into sparsehistogram
3 years ago
Ben Ye fdbc40a9ef
Expose NewChainSampleIterator func (#9475)
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
Bryan Boreham 1fb3c1b598
Replace calls to strings.Compare (#9397)
3 years ago
Julien Pivotto 63b3e4e5ec
Enable HTTP2 again (#9398)
3 years ago
Nick Pillitteri acee8c8a88
Redact remote write URL when used for metric label (#9383)
3 years ago
Serge Catudal d77c985f8c
Add initial support for exemplar to the remote write receiver endpoint (#9319)
3 years ago
Paweł Szulik f5563bfe95
tests: Move from t.Errorf and others. (Part 2) (#9309)
3 years ago
Levi Harrison bd57cd395e
Switch to common/sigv4
3 years ago
Ganesh Vernekar eedb86783e
Fix queries on blocks for sparse histograms and add unit test (#9209)
3 years ago
Ganesh Vernekar 095f572d4a
Sync sparsehistogram branch with main (#9189)
3 years ago
Levi Harrison fac1b57334
Remove Individual Data Type Caps in Per-shard Buffering for Remote Write (#8921)
3 years ago
Ganesh Vernekar 8b70e87ab9
Merge remote-tracking branch 'upstream/main' into sparse-refactor
3 years ago
jinglina ed24e51e7c
remove redundant type conversion (#9126)
3 years ago
Bryan Boreham 60804c5a09
remote_write: reduce blocking from garbage-collect of series (#9109)
3 years ago
Oleg Zaytsev b1ed4a0a66
LabelNames API with matchers (#9083)
3 years ago
Martin Disibio 1bcd13d6b5
Exemplar resize (#8974)
3 years ago
Ganesh Vernekar a1087ed37a
Fix scraping of sparse histograms (#9031)
3 years ago
Ganesh Vernekar f4d3af73f0
Query histograms from TSDB and unit test for append+query (#9022)
3 years ago