Commit Graph

1150 Commits (26886d6d95fbf290df1526cc2a51355da611f8be)

Author SHA1 Message Date
Björn Rabenstein 27579c9148
Merge pull request #14605 from krajorama/fix-staleness-pool-corrupt
4 months ago
George Krajcsovits 17b0b788da
Update promql/engine.go
4 months ago
Charles Korn 0f4bc87b4f
Make linter happy
4 months ago
Charles Korn f07b3ae67b
Fix issue where `avg` over mixed exponential and custom buckets, or incompatible custom buckets, produces incorrect results or panics
4 months ago
Charles Korn 5ee94f49a2
Fix issue where `sum` over mixed exponential and custom buckets, or incompatible custom buckets, produces incorrect results
4 months ago
Charles Korn 424cefcf5e
Fix "cannot reduce resolution to custom buckets schema" panic in `rate` over native histograms with mix of custom and exponential buckets
4 months ago
Charles Korn f6e4b775e2
Check for errors first
4 months ago
György Krajcsovits b91acc61b0 Add unit test
4 months ago
Björn Rabenstein ee5bba07c0
Merge pull request #14413 from prometheus/beorn7/promql
4 months ago
Björn Rabenstein 71ba554293
Merge pull request #14482 from ywwg/owilliams/group-quote
4 months ago
György Krajcsovits 37c8c9257b Fix histogram pool poisoning bu chunkenc.Iterator
4 months ago
Charles Korn aadec25faf
promql: Fix issue where some native histogram-related annotations are not emitted by `rate` (#14575)
4 months ago
Owen Williams d90c5a71d7 support quoting in grouping label lists
4 months ago
Jan Fajerski 8a96a75ba8 Merge branch 'main' into 3.0-main-sync-24-08-01
4 months ago
Filip Petkovski 3e6155e596
Use CopyTo when resetting histogram in stats iterator
4 months ago
Charles Korn 7fab72a280
promqltest: add support for setting counter reset hint on histogram samples (#14537)
4 months ago
Max Amin 84b819a69f
feat: add Google cloud roundtripper for remote write (#14346)
4 months ago
Filip Petkovski 2cd97c61e0
Add more test cases
4 months ago
Arve Knudsen 7c873004c7 Merge remote-tracking branch 'prometheus/main' into arve/close-engine
4 months ago
Filip Petkovski be7a4c9b83
Ignore stale histograms for counter reset detection
4 months ago
Jan Fajerski adf5d6bce1 Merge branch 'main' into 3.0-main-sync-24-07-18
4 months ago
Björn Rabenstein ca7062cf49
Merge pull request #14464 from prometheus/beorn7/histogram
4 months ago
beorn7 c39776c5b5 promql: Add NHCB tests
4 months ago
Bryan Boreham bb241d7960
Merge pull request #14463 from fpetkovski/customize-acceptance-tests
5 months ago
Arve Knudsen fbc9eddfaf Refactor engine creation in tests
5 months ago
Arve Knudsen fec6adadcd Merge remote-tracking branch 'prometheus/main' into arve/close-engine
5 months ago
Bryan Boreham d116bf7b9f
Merge pull request #14109 from harry671003/pass_limit_to_querier
5 months ago
Filip Petkovski cb8b6d7504
Allow built-in tests to be customized
5 months ago
beorn7 cff0429b1a promql: make avg_over_time faster and more precise
5 months ago
beorn7 3a908d8e08 promql: Improve Kahan usage in avg_over_time
5 months ago
beorn7 c46074f4dd promql: make avg aggregation more precise and less expensive
5 months ago
darshanime bd4ea118e9 Allow durations for number rule
5 months ago
darshanime cfad8ff3b2 Deprecate duration token
5 months ago
darshanime 8c8860d2d6 Allow number literals as duration
5 months ago
Filip Petkovski acb6c1ae4b
Fix decoding buckets for native histograms in binops
5 months ago
Jan Fajerski c0d67fd845 Merge branch 'main' into 3.0-main-sync-24-07-09
5 months ago
beorn7 b5b04ddbe3 promql: add avg aggregation benchmark
5 months ago
beorn7 44d8c1d182 nit: add period at end of sentence
5 months ago
beorn7 9a837b7f3c promql: Make groupedAggregation.groupCount a float64
5 months ago
JuanJo Ciarlante c94c5b64c3
feat: add limitk() and limit_ratio() operators (#12503)
5 months ago
Arve Knudsen 493e196f10 Fix bad merge
5 months ago
Arve Knudsen 020b0f200a Merge remote-tracking branch 'prometheus/main' into arve/close-engine
5 months ago
Jan Fajerski b4152309a4 Merge branch 'main' into 3.0-main-sync
5 months ago
Ganesh Vernekar 3d54bcc018
Merge pull request #14362 from charleskorn/charleskorn/sum-infinity
5 months ago
Arve Knudsen e8ae8cf012 Merge remote-tracking branch 'prometheus/main' into arve/close-engine
5 months ago
Charles Korn fd6bdf5230
Fix issue where summation of +/- infinity returns NaN instead of infinity
5 months ago
Björn Rabenstein 2e58d46522
Merge pull request #13662 from prometheus/nhcb
5 months ago
Björn Rabenstein 19da579799
Merge pull request #12821 from rexagod/12769
5 months ago
Pranshu Srivastava 3c9e3ee552
parser: support underscores
5 months ago
Bryan Boreham b6aba4ff14
Merge pull request #14074 from bboreham/kahan-sum-sum
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
Jeanette Tan fc9dc72028 remove eval_with_nhcb
5 months ago
Jeanette Tan a6d788b1be update missed suggested change from code review
5 months ago
Zhang Zhanpeng debbdb8608 make matrix selection and lookback left-open and right-closed
5 months ago
Bryan Boreham 84602bbace
Merge branch 'main' into fix-matcher-string-with-empty-label-name
5 months ago
Charles Korn aeec30f082
Convert `TestTimestampFunction_StepsMoreOftenThanSamples`
5 months ago
Charles Korn 987fa5c6a2
Convert range query test cases to test scripting language
5 months ago
Arve Knudsen b7320ef636 Merge remote-tracking branch 'prometheus/main' into arve/close-engine
6 months ago
Oleg Zaytsev 03cf6141d4
Fix Matcher.String() with empty label name
6 months ago
Björn Rabenstein 08621bebe9
Merge pull request #14269 from prometheus/beorn7/histogram-test
6 months ago
Jeanette Tan b8cb12b989 rename hist to histogram according to code review
6 months ago
Jeanette Tan 4c2aa872d4 update readme for testing framework
6 months ago
Jeanette Tan 14f8dded39 Merge branch 'main' into nhcb
6 months ago
Jeanette Tan b0e320425c refine test rewriting regex and add validation
6 months ago
Jeanette Tan 9adc1699c3 fix according to code review
6 months ago
Charles Korn 1f988f77ff
promql: extend test scripting language to support asserting on expected error message (#14038)
6 months ago
beorn7 c7fdfe8004 promql: Add tests for histogram counter reset only in bucket
6 months ago
Filip Petkovski 6e68046c25
Implement histogram statistics decoder (#14097)
6 months ago
Arve Knudsen e57aac8084 Merge remote-tracking branch 'prometheus/main' into arve/close-engine
6 months ago
Charles Korn 24ef000025
Merge branch 'main' into sort-matrix-series
6 months ago
Arve Knudsen 0cc99e677a promql.Engine: Add Close method
6 months ago
Arve Knudsen f3b8750339 Join errors
6 months ago
Arve Knudsen 7b56353090 Merge remote-tracking branch 'prometheus/main' into arve/query-logger-munmap
6 months ago
Björn Rabenstein 114dc5c393
Merge pull request #13638 from NeerajGartia21/promql-test
6 months ago
Arve Knudsen 0f01d4b336 Fix flaky test
7 months ago
Arve Knudsen bf8d88f326 Merge remote-tracking branch 'origin/main' into arve/query-logger-munmap
7 months ago
Oleksandr Redko f10c3454e9 Enable perfsprint linter and fix up code
7 months ago
Björn Rabenstein e6be4240be
Merge pull request #14068 from colega/quote-label-name-in-matchers-when-needed
7 months ago
Jeanette Tan f028496133 Merge branch 'main' into nhcb
7 months ago
Neeraj Gartia 661856cb65 removes the added tests from engine_test.go
7 months ago
Neeraj Gartia 6119124d0e some nits
7 months ago
Neeraj Gartia adf5a36c1e adds test for sum, count, stddev, stdvar, quantile and fraction func to promql testing framework
7 months ago
Neeraj Gartia 8b838a05d9 adds test for native histogram rate func in promql testing framework
7 months ago
Neeraj Gartia 548bd9d6fb adds TestNativeHistogramRate func to promql test framework
7 months ago
Charles Korn 0e934dba8e
Capture timing information while sorting
7 months ago
Charles Korn 036c87223c
Ensure series in matrix values returned for instant queries are always sorted
7 months ago
Charles Korn a4381608a0
Add failing test case
7 months ago
Bryan Boreham ea82b49c33 [ENHANCEMENT] PromQL: use Kahan summation for sum()
7 months ago
Arve Knudsen aabe4d6e4a promql.ActiveQueryTracker: Unmap mmapped file when done
7 months ago
Bryan Boreham 3fd24d1cd7
Merge pull request #13999 from bboreham/extract-promqltest
7 months ago
Bryan Boreham 786e0e706c test: PromQL: stop using internal fields of engine
7 months ago
Bryan Boreham 0dbfd20b69 test: move most PromQL tests into separate test package
7 months ago
Bryan Boreham 4a72607c4a refactor: extract some PromQL Engine tests which use unexported structs
7 months ago
Bryan Boreham e7c77f7b40 promql: export NewTestQuery
7 months ago
Bryan Boreham babfcfdd91 refactor: Move NewTestEngine into promqltest
7 months ago
Oleg Zaytsev dabd789fd5
Quote label name in matchers when needed
7 months ago
Bryan Boreham b3c15d2246 test: clean up promqltest package references
7 months ago
Bryan Boreham 9aa321d672 test: make field initializers explicit
7 months ago
Bryan Boreham ccf73266f0 test: move promqltest tests together with the implementation
7 months ago
Bryan Boreham 11b27d5d22 test: move test files into new promqltest package
7 months ago
Bryan Boreham a6e427660a test: check for @-modifier without using engine internals
7 months ago
Bryan Boreham 2b0c87b1b6 test: turn TestKahanSum into scripted test
7 months ago
Bryan Boreham a1af3c27d4 refactor: extract almost.Equal() to new package
7 months ago
zenador 545a7e48f9
[nhcb branch] Enhance unit test framework for nhcb and warnings (#14009)
7 months ago
Jeanette Tan 796b1bbfde Merge branch 'main' into nhcb
7 months ago
Arve Knudsen a25160e6a4
[REFACTOR] PromQL: simplify rangeEvalTimestampFunctionOverVectorSelector (#14021)
7 months ago
Oleg Zaytsev 4b7a44c7a0
Fix `parser.VectorSelector.String()` with empty name matcher (#14015)
7 months ago
guangwu 9fda9443d4
fix(promql/query_logger): close file in error handling (#13948)
7 months ago
György Krajcsovits bcafa5f1f9 Merge remote-tracking branch 'upstream/main' into update-nhcb
7 months ago
zenador 81862aabd7
[nhcb branch] Add basic unit tests for native histograms with custom buckets converted from classic histograms (#13794)
7 months ago
Owen Williams 4a6f8704ef
parser: remake generated_parser output (#13923)
8 months ago
Neeraj Gartia 612de026da
Adds Inf and NaN as Numbers to Histogram in Promql Testing Framework (#13916)
8 months ago
Matthieu MOREL 6f595c6762
golangci-lint: enable whitespace linter (#13905)
8 months ago
Bryan Boreham 12961c6a37 promql: refactor: eliminate one 'else'
8 months ago
Bryan Boreham 0ac927515b promql: move group-seen into group struct
8 months ago
Bryan Boreham 7499d90913 promql: remove pointer to aggregation groups
8 months ago
Bryan Boreham cfbeb6681b promql: re-use one heap for topk and bottomk
8 months ago
Bryan Boreham 5e3914a27c promql: remove histogramMean from groupedAggregation
8 months ago
Bryan Boreham 2cf3c9de8f promql: store labels per-group only for count_values
8 months ago
Bryan Boreham 185290a0d2 promql: pull checking of q and k out of loop
8 months ago
Bryan Boreham 4584f67e17 promql: inline nextSample function
8 months ago
Bryan Boreham 526ce4ee7a promql: simplify data collection in aggregations
8 months ago
Bryan Boreham 2f03acbafc promql: refactor: split topk/bottomk from sum/avg/etc
8 months ago
Bryan Boreham 74eed67ef6 promql: refactor: pull fetching input data out of rangeEvalAgg
8 months ago
Bryan Boreham 602eb69edf promql: refactor: extract function nextSample
8 months ago
Bryan Boreham eb41e770b7 promql: refactor: extract function addToSeries
8 months ago
Bryan Boreham 53a3138eeb promql aggregations: pre-generate mapping from inputs to outputs
8 months ago
Bryan Boreham cb6c4b3092 promql: simplify k/q parameter to topk/bottomk/quantile
8 months ago
Bryan Boreham b3bda7df4b promql: aggregations: skip copying input to a Vector
8 months ago
Bryan Boreham c9b6c4c55a promql: aggregations: output directly to matrix for instant queries
8 months ago
Bryan Boreham 3851b74db1 promql: aggregations: skip result vector in range queries
8 months ago
Bryan Boreham 59548b8a0b promql: refactor: move collection of results into aggregation()
8 months ago
Bryan Boreham bd9bdccb22 promql: refactor: simplify internal data structures
8 months ago
Bryan Boreham 5f10d17cef promql: refactor: split out aggregations over range
8 months ago
Bryan Boreham e5f667537c promql: refactor: initialize aggregation before storing in map
8 months ago
Bryan Boreham 29244fb841 promql: refactor: extract count_values implementation
8 months ago
Bryan Boreham 8e04ab6dd4 promql: refactor: extract generateGroupingLabels function
8 months ago
Bryan Boreham 7c28521451 [TESTS] Truncate some long test names, for readability
8 months ago
Charles Korn cd72ebb05f
promql: include more details in error message when creating test query fails or an unexpected series is returned (#13847)
8 months ago
Julius Volz 9b7de47787
Remove unused Dmn field on EvalNodeHelper (#13877)
8 months ago
beorn7 65b4696b88 promql: Remove leftover debug output
8 months ago
beorn7 2c1f9558b2 promql: Fix histogram comparison in test framework
8 months ago
György Krajcsovits 2a4aa085d2 Merge branch 'main' into nhcb
8 months ago
George Krajcsovits dc7b282d39
engine_test: adjust and comment histogram sample counts (#13841)
8 months ago
Björn Rabenstein b9a2a4e329
Merge pull request #13852 from prometheus/fix-hist-std-dev-var-negative
8 months ago
Jeanette Tan 4f2df329bd improve handling of empty buckets with infinite bounds in histogram std dev/var
8 months ago
Jeanette Tan 22d0f4f114 improve handling of negative bounds in histogram std dev/var
8 months ago
Domantas 435f330d0b
[BUGFIX] labels: don't modify original labels in DropMetricName (#13845)
8 months ago
Charles Korn 5cc97a1820
[tests]: extend test scripting language to support range queries (#13825)
8 months ago