Commit Graph

809 Commits (c173cd57c921f582586fc725ad51124728757533)

Author SHA1 Message Date
David N Perkins 472456efde Added issue link to the comment
3 years ago
David N Perkins 52662e8105 Added metric name to histogram quartile binning and associated unit test
3 years ago
Björn Rabenstein ec80745884
Merge pull request #10075 from prometheus/beorn7/histogram
3 years ago
beorn7 3b4d6c3fdb model: Implement FloatHistogram.Compact
3 years ago
beorn7 e7592fe353 sparsehistogram: Address two TODOs
3 years ago
beorn7 947810b0f2 promql: Tweak histogramQuantile
3 years ago
beorn7 a6acdfe346 histograms: Doc comment and naming improvements
3 years ago
beorn7 53ca375345 promql: Add a guard against a nil histogram in sum aggregation
3 years ago
Ganesh Vernekar f580248759
Support + operator for sparse histograms (#9949)
3 years ago
Ganesh Vernekar 187a767292
Implement sum() for sparse histograms (#9948)
3 years ago
Ganesh Vernekar 4a43349aca
`histogram_quantile` for sparse histograms (#9935)
3 years ago
Björn Rabenstein 0e1b9dd308
Promql: Initial rate implementation for sparse histograms (#9926)
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 7e42acd3b1
tsdb: Rework iterators (#9877)
3 years ago
Shihao Xia 0e82a96e2f
fix potential deadlock in test (#9010)
3 years ago
beorn7 9672ade191 Promql: Add clarifying note to Point.MarshalJSON
3 years ago
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
Tobias Guggenmos f9db320e5a Look up function call in all cases
5 years ago
Tobias Guggenmos 9ebf6bd1e6 Remove superfluous blank lines
5 years ago
Tobias Guggenmos 7143d64fc1
Julien's suggestion
5 years ago
Tobias Guggenmos 4124828c00 Add test to check that promql.FunctionCalls and parser.Functions contain the same functions
5 years ago
Tobias Guggenmos 4835bbf376
Merge branch 'master' into split_parser
5 years ago
Bartlomiej Plotka 849faa407b Minor fixes.
5 years ago
Bartlomiej Plotka 2cf637fbf5 Addressed comments.
5 years ago
Bartlomiej Plotka 34426766d8 Unify Iterator interfaces. All point to storage now.
5 years ago
Tobias Guggenmos 2d77611f73 Unbump year number
5 years ago
Tobias Guggenmos bf8542a99e Add missing imports to fuzz tests
5 years ago
Tobias Guggenmos ec3df53f78 Add nolint comment
5 years ago
Tobias Guggenmos b93845d6bf Remove unused function
5 years ago
Tobias Guggenmos 43d206f0a1 Add missing file
5 years ago
Tobias Guggenmos 6c00f2ffcb Comment fixes
5 years ago
Tobias Guggenmos 273ea9093a Fix promql tests
5 years ago
Tobias Guggenmos 1360f9ff12 Fix all build errors in promql package
5 years ago
Tobias Guggenmos 2164e366ea Fix more identifiers
5 years ago
Tobias Guggenmos 5caf7ed6db Fix more identifiers
5 years ago
Tobias Guggenmos 9a1366775e Store function implementations independently of their signatures
5 years ago
Tobias Guggenmos ff0ea1c1ac Fix more identifiers
5 years ago
Tobias Guggenmos 6b1b323558 Export sequenceValue
5 years ago
Tobias Guggenmos 228967a507 Fix usages of more things that have moved the package
5 years ago
Tobias Guggenmos 4a4817a444 Fix usages of parser.Statement
5 years ago
Tobias Guggenmos 2f1113479f Fix usages of ValueType
5 years ago
Tobias Guggenmos 65f5b9827d Rename package
5 years ago
Tobias Guggenmos 98a9b7c90c Remove engine specific types
5 years ago
Tobias Guggenmos fab2373752 Add everything the parser needs to build
5 years ago
Tobias Guggenmos e7c2716f55 Move files
5 years ago
Zhou Hao e628fd7735
fix comments spelling (#6829)
5 years ago
Björn Rabenstein af04cb22c8
Merge pull request #6821 from prometheus/release-2.16
5 years ago
Julien Pivotto ff0003e072
Make lookbackDelta a option of QueryEngine (#6746)
5 years ago
Julien Pivotto cbd0eec9fc Avoid /1000
5 years ago