Commit Graph

1144 Commits (96c2fe04e74cf00026bccee80e10b6fa192082c2)

Author SHA1 Message Date
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
5 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
6 months ago
Arve Knudsen bf8d88f326 Merge remote-tracking branch 'origin/main' into arve/query-logger-munmap
6 months ago
Oleksandr Redko f10c3454e9 Enable perfsprint linter and fix up code
6 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
Bryan Boreham 080d440bf8 Merge remote-tracking branch 'origin/main' into pr/13461
8 months ago
Bryan Boreham 773170f372
Merge pull request #13822 from dgl/promtool-test-errors
8 months ago
György Krajcsovits a3d1a46eda Merge branch 'main' into nhcb
8 months ago
Jeanette Tan 9d32754bc0 add unit tests with all negative values for histogram_stddev and var
8 months ago
David Leadbeater 7ec4a11472 promtool: Avoid using testify for user rule tests
8 months ago
tdakkota f6834c347a
promql: validate `label_join` destination label
8 months ago
Bartlomiej Plotka 312e3fd728
Merge pull request #13713 from charleskorn/query-engine-interface
9 months ago
Björn Rabenstein af3618fd35
Merge pull request #13667 from prometheus/beorn7/promql
9 months ago
Charles Korn 26262a1eb7
Remove unnecessary `SetQueryLogger` method on `QueryEngine` interface
9 months ago
carrychair 856f6e49c8 fix function and struct name
9 months ago
beorn7 7f912db15a promql: Fix limiting of extrapolation to negative values
9 months ago
Charles Korn 4e77e8e5ef
Allow using alternative PromQL engines for rule evaluation
9 months ago
beorn7 f48c7a5503 promql: Add histograms to TestQueryStatistics
9 months ago
beorn7 f46dd34982 promql: Add code comment
9 months ago
beorn7 7d364c0451 promql: remove redundant line
9 months ago
Björn Rabenstein d5f0a240fa
Merge pull request #13674 from prometheus/owilliams/dupeok
9 months ago
Björn Rabenstein 9187bcbdd5
Merge pull request #13536 from bboreham/faster-label-replace
9 months ago
Owen Williams e01e7d36e2 fix: restore ability to match __name__ multiple times in selector
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
György Krajcsovits 5d0a0a7542 Add custom buckets to native histogram model (#13592)
9 months ago
Björn Rabenstein 11932cd345
Merge pull request #13637 from bboreham/agg-warning
9 months ago
Owen Williams ac51a8024c tests(utf8): confirm that other quote marks are handled correctly in promql
9 months ago
Bryan Boreham 0347148628 promql: fuzz test needs symbol table for parser
9 months ago
Bryan Boreham 22890b1eb3 PromQL: improve warning for mixed values in aggregations
9 months ago
Owen Williams a28d7865ad UTF-8: Add support for parsing UTF8 metric and label names
9 months ago
Bryan Boreham ff6c83269c
Merge pull request #13452 from bboreham/go-cmp
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
beorn7 86d7618d84 promql: Fix wrongly scoped range vectors
10 months ago
beorn7 384ab025e0 promql: Expose issue #11708
10 months ago
Bryan Boreham 98c4889029
Merge pull request #9298 from Creatone/creatone/use-testify
10 months ago
Bryan Boreham d3c1f0d8e0 promql: can now remove regex field from EvalNodeHelper
10 months ago
Bryan Boreham fdd5b85e06 promql: faster range-query of label_replace and label_join
10 months ago
Faustas Butkus 6feffeb92e
promql: add histogram_avg function (#13467)
10 months ago
Alan Protasio c006c57efc
Proposal to improve FPointSlice and HPointSlice allocation. (#13448)
10 months ago
Paweł Szulik 1a47c7d59b Refactor lexer tests to use testify.
10 months ago
Filip Petkovski a577a0a542
Fix last_over_time for native histograms
10 months ago
Marco Pracucci f639d7794c
Fix TestParseExpressions
10 months ago
Bryan Boreham 74b73d1e2c
Labels: Add DropMetricName function, used in PromQL (#13446)
10 months ago
Filip Petkovski 583f3e587c
Optimize histogram iterators (#13340)
10 months ago
Ben Ye d778591fd3 add more context cancellation check at evaluation time
10 months ago
Björn Rabenstein bfbb13cf36
Merge pull request #13267 from linasm/simplify-native-histogram-math
10 months ago
Julien Pivotto 4f941bbf69
Merge pull request #13416 from tylitianrui/feat/remove_obsolete_build_tag
10 months ago
zenador a3ddfbd1ee
Add warnings for histogramRate applied with isCounter not matching counter/gauge histogram (#13392)
10 months ago
tyltr f97fa2736c remove obsolete build tag
10 months ago
Ivan Babrou a6b35ff304
promql: use natural sort in sort_by_label and sort_by_label_desc (#13411)
10 months ago
zenador 72a8f1084b
Restore more efficient version of NewPossibleNonCounterInfo annotation (#13022)
10 months ago
Ayoub Mrini ace9c8a3da
promtool: allow setting multiple matchers to "promtool tsdb dump" command. (#13296)
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
Filip Petkovski 0e1ae1d1ca
Add comment
11 months ago
Filip Petkovski 35f9620cd1
Expand benchmark
11 months ago
Filip Petkovski 5df3820c7a
Copy last histogram point
11 months ago
Filip Petkovski 1f69dcfa6b
Fix reusing float histograms
12 months ago
Filip Petkovski bb8363dbb3
Add comment on SampleRingIterator
12 months ago
Filip Petkovski e2a9f8ac0f
Reuse float histogram objects
12 months ago
Björn Rabenstein db915b07cb
Merge pull request #13215 from fpetkovski/float-histogram-reuse
12 months ago
Bartlomiej Plotka 91a383f52c
Merge pull request #13059 from zenador/add-mad-function
12 months ago
Filip Petkovski 10a82f87fd
Enable reusing memory when converting between histogram types
12 months ago
Linas Medziunas 7319ad6a0b promql: simplify Native Histogram arithmetics
12 months ago
Matthieu MOREL 9c4782f1cc
golangci-lint: enable testifylint linter (#13254)
12 months ago
Jeanette Tan 2910b48180 Make mad_over_time experimental and move tests
1 year ago
Jeanette Tan 9bf4cc993e Add mad_over_time function
1 year ago
Björn Rabenstein 5dbbadf598
Merge pull request #13216 from prometheus/beorn7/doc
1 year ago
Oleksandr Redko 2a75604f8e
Enable default revive rules (#13068)
1 year ago
beorn7 0eb0ca42c5 Update “conventional histogram” → “classic histogram”
1 year ago
Julien Pivotto c1ec6ae851 sort_by_label: Switch to feature flag
1 year ago
Alexander Trost 5051a993ab promql: add sort_by_label and sort_by_label_desc functions
1 year ago
zenador ccfe14d7e7
PromQL: ignore small errors for bucketQuantile (#13153)
1 year ago
Filip Petkovski 35a15e8f04
Add benchmark for native histograms (#13160)
1 year ago
Julien Pivotto c92fbf3fdf Add feature flag for PromQL experimental functions.
1 year ago
Linas Medziunas 1cd6c1cde5 ValidateHistogram: strict Count check in absence of NaNs
1 year ago
Dimitar Dimitrov 9e3df532d8
Export `promql.Engine.FindMinMaxTime`
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
Bryan Boreham 49c5e7afe1 PromQL: reduce garbage in range-query evaluation
1 year ago
zenador 80e977aae6
Remove `NewPossibleNonCounterInfo` and minimise creating empty annotations (#13012)
1 year ago
Marc Tuduri af7c31ee10
PR feedback
1 year ago
Marc Tuduri 8fededf6ad
promql(histograms): Change sample total calculation for histograms
1 year ago
Jeanette Tan 9a8bd8eac6 Fix possible non-counter warning for empty names and native histograms
1 year ago
Julius Volz 191c24a0ed Fix: Exempt "_bucket" suffix from PossibleNonCounterInfo warning (#12982)
1 year ago
Jeanette Tan 0cbf0c1c68 Revise according to code review
1 year ago
Jeanette Tan feaa93da77 Add warning when monotonicity is forced in the input to histogram_quantile
1 year ago
Alan Protasio a15e884e7a
Prevent Prometheus from overallocating memory on subquery with large amount of steps. (#12734)
1 year ago
Goutham Veeramachaneni 86729d4d7b
Update exp package (#12650)
1 year ago
Bryan Boreham 91054875d6
Merge pull request #12732 from bboreham/simplify-rangeeval
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 6daee89e5f
Add context argument to Querier.Select (#12660)
1 year ago
Julien Pivotto 284ba3426b
Merge pull request #12758 from bboreham/trim-rangequery-benchmarks
1 year ago
Bryan Boreham e4dd3469ac lint
1 year ago
Bryan Boreham 5ce990cabc promql: simplify rangeEval a bit more
1 year ago
Bryan Boreham c5671c6d97
Merge pull request #12755 from bboreham/rangequery-benchmark-mmap
1 year ago
Bryan Boreham 1ea57a3f8c PromQL: reduce numbers of benchmarks
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
zenador 54aaa2bd7e
Add `histogram_stdvar` and `histogram_stddev` functions (#12614)
1 year ago
beorn7 aa82fe198f tsdb: Fix histogram validation
1 year ago
Bryan Boreham 3879488476 promql: simplify inner loop of rangeEval
1 year ago
Michael Hoffmann 4d8e380269
promql: allow tests to be imported (#12050)
1 year ago
Bryan Boreham 5cea37c069
Merge pull request #12682 from bboreham/contains-same-label-set
1 year ago
Bryan Boreham 0670e4771a promql engine: check unique labels using existing map
1 year ago