Commit Graph

741 Commits (742979a3e55b4427f2407a76c48379a646158e02)

Author SHA1 Message Date
Ganesh Vernekar 2a3d62ac84
Revert "promql: Remove unused Point.MarshalJSON method (#9860)" (#9864)
3 years ago
Björn Rabenstein 427425cc9f
promql: Remove unused Point.MarshalJSON method (#9860)
3 years ago
beorn7 8e4e8726bb promql: Fix another ChunkEncoding call
3 years ago
beorn7 5d4db805ac Merge branch 'main' into sparsehistogram
3 years ago
beorn7 9de3ab60df promql: improve histogram support in engine.go
3 years ago
Matthew 7ee52bfb86
feat: linreg => slope 0 for const values (#9728)
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
beorn7 f1065e44a4 model: String method for histogram.Histogram
3 years ago
Thomas Jackson f0003bc0ba
Don't drop ParenExpr when creating StepInvariantExpr (#9591)
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
Mateusz Gozdek b7bdf6fab2 Fix imports formatting
3 years ago
Mateusz Gozdek 1a6c2283a3 Format Go source files using 'gofumpt -w -s -extra'
3 years ago
darshanime 42d786f1ac use kahan summation for aggregation functions
3 years ago
darshanime 694b872dee address stylistic nits
3 years ago
darshanime a905354da3 use kahan for avg_over_time
3 years ago
darshanime 0a9deb9597 use kahan summation for numerical stability
3 years ago
Björn Rabenstein c092a74be9
Merge pull request #9553 from prometheus/beorn7/histogram
3 years ago
beorn7 c00c6ed01f promql: Add more test cases for `histogram_quantile`
3 years ago
Bryan Boreham a278ea4b58
promql: copy data when short-circuiting (#9552)
3 years ago
beorn7 a9008f5423 Merge branch 'main' into sparsehistogram
3 years ago
Julien Pivotto c812ee794e
PromQL: Comment flaky test (#9545)
3 years ago
Julien Pivotto a18224d02d
make aggregations deterministic (#9459)
3 years ago
ziollek 55f9147b44
Add atan2 to scalar operators - issue #9485 (#9515)
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
Levi Harrison 587cb95093 Add operator tests
3 years ago
Levi Harrison f5c6ee4df6 Add lex test
3 years ago
Levi Harrison 7471208b5c Add `ATAN2` to `maybe_label`
3 years ago
Levi Harrison 8547a2bd86 Add `atan2` binary operator
3 years ago
Bryan Boreham 5a754bc043
Short-circuit vector binary ops (#9362)
3 years ago
Bryan Boreham c4942ef3b7
Optimise query_range by computing join signatures just once (#9360)
3 years ago
Bryan Boreham 7d105277fe
Optimise topk where k==1 (#9365)
3 years ago
Levi Harrison 4ac4e2ca4b Remove parenthesis
3 years ago
Levi Harrison 6faca22eec Add inverse hyperbolic functions
3 years ago
Levi Harrison 9c54ee0a6e Changed function comment
3 years ago
Levi Harrison 53d88fd147 Added hyperbolic trig functions
3 years ago
Levi Harrison a8ad569db8 Change spaces to tabs
3 years ago
Levi Harrison ecc29d38b8 Fixed `pi` definition
3 years ago
Levi Harrison 9fc7ba33aa Remove `atan2()`
3 years ago
Levi Harrison f1d94cc5f6 Split and shortened tests
3 years ago
Levi Harrison d5ecdc4597 Remove variadic
3 years ago
Levi Harrison 814cd5844d Added tests
3 years ago
Levi Harrison 309e020c0a Added functions
3 years ago
Paweł Szulik f5563bfe95
tests: Move from t.Errorf and others. (Part 2) (#9309)
3 years ago
Oleg Zaytsev 0a43e788af
Allow VectorSelector.String() without matchers (#9282)
3 years ago
SuperQ e167a45c65
Add new Go build tags.
3 years ago
Julien Pivotto cab96a06ef
Merge release 2.29 in main (#9196)
3 years ago
Ganesh Vernekar 8b70e87ab9
Merge remote-tracking branch 'upstream/main' into sparse-refactor
3 years ago
Darshan Chaudhary c4f2e9eec5
Add present_over_time (#9097)
3 years ago
Oleg Zaytsev b1ed4a0a66
LabelNames API with matchers (#9083)
3 years ago
darshanime 364c40be57 Add Stringer to Query interface
3 years ago
Levi Harrison 90976e7505
Promtool: Add feature flags to unit tests (#8958)
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
Levi Harrison 4a4882d4c7 Replace godoc.org links
3 years ago
Levi Harrison b5f6f8fb36 Switched to go-kit/log
4 years ago
Julius Volz e313ffa8ab
Fix "instant selector vector" typo in error messages (#8800)
4 years ago
Callum Styan 8fd73b1d28
Add Exemplar Remote Write support (#8296)
4 years ago
Julien Pivotto e36e5fa833
Merge pull request #8731 from yeya24/update
4 years ago
Fiona Liao 9b83d8330a
Fix memSafeIterator.Seek() (#8748)
4 years ago
yeya24 d698e062dc improve grouping label match logic
4 years ago
Marco Pracucci 6719071a0f
Optimize aggregations in PromQL engine (#8594)
4 years ago
Callum Styan 289ba11b79
Add circular in-memory exemplars storage (#6635)
4 years ago
Marco Pracucci 7bbab380b6
Added tracing span to evaluator.eval()
4 years ago
Marco Pracucci b92c03023d
Optimized vector selector
4 years ago
Julien Pivotto ad5ed416ba
Merge pull request #8487 from pschou/dev_neg_offset
4 years ago
Julien Pivotto 5742a18590 Fix subqueries with default resolution in promql unit tests
4 years ago
schou 3bafe17870 add negative offset to printer
4 years ago
pschou f80b52be69
Merge branch 'main' into dev_neg_offset
4 years ago
schou efbf3af05d reduce addOffst to 2 parameters
4 years ago
schou 75d932a172 var init for bool
4 years ago
schou 22bfc11738 aggregate booleans for ease of reading
4 years ago
schou 22cd48868a adding feature flag, promql-negative-offset
4 years ago
schou 851acf86ee rebuild generated_parser.y.go
4 years ago
schou 0c577c547b add negative offset ability
4 years ago
songjiayang 776c2b8f42 Speed delta value without loop to calculate resultValue
4 years ago
pschou aff3c702ab
promql: Add sgn, clamp and last_over_time functions (#8457)
4 years ago
Danny Kopping 42a0e0acad
Prevent lexer from seeking to next rune after lexing escape sequence. (#8517)
4 years ago
Tom Wilkie 7369561305
Combine Appender.Add and AddFast into a single Append method. (#8489)
4 years ago
Mauro Stettler 7715fe3219
Add matchers to LabelValues() call (#8400)
4 years ago
Ganesh Vernekar 86c71856e8
Add start() and end() pre-processors for @ modifier (#8425)
4 years ago
Marcelo E. Magallon 75d86c6747 Update golangci-lint to 1.36.0
4 years ago
Ganesh Vernekar ed8d31b059
Remove empty test
4 years ago
Ganesh Vernekar b18fde996e
Fix timestamp() function for @ modifier
4 years ago
Ganesh Vernekar b5dfa2414b
Fix flaky TestAtModifier (#8401)
4 years ago
Ganesh Vernekar 9199fcb8d1
'@ <timestamp>' modifier (#8121)
4 years ago
Julien Pivotto 34656bbf8e
PromQL parser: fastpath for non-empty matchers and metric name (#8345)
4 years ago
Ganesh Vernekar 063154eab7
Automate part of TestMaxQuerySamples (#8314)
4 years ago
Atibhi Agrawal 0dd6e0cb76
change string(model.metricnamelabel) to model.metricnamelabel (#8289)
4 years ago
Brian Brazil bef9d4e182
Don't include rendered expression in parse errors. (#8177)
4 years ago
Ganesh Vernekar d30da66d77
Fix timestamp() method for vector selector inside paren (#8164)
4 years ago
Julien Pivotto 6c56a1faaa
Testify: move to require (#8122)
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
Harold Dost bf7c771f54
promql: Organize legacy tests into appropriate files (#7989)
4 years ago
Brian Brazil 924ce978b7
Don't do literal regex matching optimisation when case insensitive. (#8013)
4 years ago
Harkishen Singh fc8e769d71
Use ASSIGN when using = inside braces (#7911)
4 years ago
Vijay Samuel 00ee73ef91
Export members of EvalNodeHelper to facilitate usage in external functions (#7860)
4 years ago
johncming 267dd17fe7
promql/parser: use pos instead of origin. (#7853)
4 years ago
Julien Pivotto 6f9e7ff750
Drop metric name in bool comparison between two instant vectors (#7819)
4 years ago
Julien Pivotto 20ab94fedf
Hints: Separating out the range and offsets of PromQL subqueries (#7667)
4 years ago
Annanay Agarwal 118aeab02c
Make context key type public (#7748)
4 years ago
Julien Pivotto d867491364
Human-friendly durations in PromQL (#7713)
4 years ago
johncming 31929b83d5
promql: use explicit type declare instead of string. (#7716)
4 years ago
johncming 1c1b394e5e
promql: Swap order of parseBrokenJSON. (#7718)
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
Julien Pivotto 22acb87e09
refactoring: make sure that query_duration_seconds metrics are the same (#7668)
4 years ago
Owen Diehl 00b7bdb1b6
parser.{Expr,Statement} publicly implementable (#7639)
4 years ago
Annanay 7f98a744e5 Add context to Appender interface
4 years ago
Guangwen Feng 6b7ac2ac1b
Add unit test case to improve test coverage for matcher.go (#7658)
4 years ago
Julien Pivotto 93e9c010f3
Add more Go leak tests (#7652)
4 years ago
Bartlomiej Plotka 841b13641c
promql: Refactored subquery hint tests and added todos. (#7636)
4 years ago
Bartlomiej Plotka a0df8a383a
promql: Removed global and add ability to have better interval for subqueries if not specified (#7628)
4 years ago
Guangwen Feng b30654211c
Fix incorrect arguments order in TestExprString (#7602)
4 years ago
Julien Pivotto d77b56e88e
Fix avg_over_time for nan and float64 overflows (#7346)
4 years ago
Tobias Guggenmos 1f73073d73
Make without a valid metric identifier (#7533)
4 years ago
Julien Pivotto 72425d4e3d
Add group() aggregator (#7480)
4 years ago
Guangwen Feng 9ab072b470
Fix golint issue caused by typo (#7475)
4 years ago
Linas Medžiūnas 7eaffa7180
Fix off-by-one error in funcHistogramQuantile / ensureMonotonic (#7393)
5 years ago
Kemal Akkoyun 66dfb951c4
*: Consistent Error/Warning handling for SeriesSet iterator: Allowing Async Select (#7251)
5 years ago
Julien Pivotto 4284dd1f1b
promql: cleanup: use errors.As (#7351)
5 years ago
B++ d6374ae1b6
Return NaN for histogram_quantile when buckets have 0 observations (#7318)
5 years ago
Julien Pivotto 58c445e6ef
Fuzz: limit input size (#7317)
5 years ago
Brian Brazil 3932a7149f
Correctly track points no longer used by matrixIterSlice's slice. (#7307)
5 years ago
Callum Styan 5bb7f00d00
change labelset comparison in promql engine to avoid false positive during detection of duplicates (#7058)
5 years ago
Ben Ye 1e4e37144d
Fixed wrongly handled not ready TSDB on web and API. (#7182)
5 years ago
Vasily Sliouniaev 0393b188c9
Add Jaeger (#7148)
5 years ago
Julien Pivotto 1f6f8e60ee promql/parser: Cleanup generatedParserResult accross reuse
5 years ago
Marek Slabicki 8224ddec23
Capitalizing first letter of all log lines (#7043)
5 years ago
Brian Brazil 7646cbca32
Use .UTC everywhere we use time.Unix (#7066)
5 years ago
Ben Kochie 269e7c8091
Fix golint issues.
5 years ago
johncming bdc45c2b9e
remove unused code. (#7019)
5 years ago
Björn Rabenstein 1da83305be
Merge pull request #7009 from prometheus/release-2.17
5 years ago
Tobias Guggenmos 012161d90d
PromQL: Fix lexer error handling (#6958)
5 years ago
Björn Rabenstein a28fa010ee
TSDB: Extract parts out of populateSeries (#6983)
5 years ago
Bartlomiej Plotka fe802f29c9 storage: Removed SelectSorted method; Simplified interface; Added requirement for remote read to sort response.
5 years ago
Björn Rabenstein bc703b6456
Use `struct{}` as underlying type for context keys (#6965)
5 years ago
Julien Pivotto 5ddd1dcf0f
Fix panic when parsing varags (#6940)
5 years ago
Tobias Guggenmos 1dbd799354
PromQL: Fix regression tests (#6935)
5 years ago
Brian Brazil 44ad28dd5e
PromQL: Allow more keywords as metric names (#6933)
5 years ago
Brian Brazil 7164b58945
PromQL: Fix parser panic (#6931)
5 years ago
李国忠 2bf4952049
remove Unused parameter 'sf' in calcTrendValue function (#6900)
5 years ago
LongKB 82f7ed208b
Remove some duplicated words (#6882)
5 years ago
Tobias Guggenmos 3d74fcfa6a Bartek's suggestions
5 years ago