Commit Graph

646 Commits (286dfc70b7c7d22a17068b5038bc13f02bf87d70)

Author SHA1 Message Date
Tobias Guggenmos 3a204be6b7 PromQL: Fix string and parentheses handling in engine (#6612)
5 years ago
Tobias Guggenmos 0c8e9ef09e PromQL: Add position metadata to the AST (#6615)
5 years ago
Tobias Guggenmos 64194f7d45 PromQL: AST: Make VectorSelector Children of MatrixSelector (#6590)
5 years ago
Julien Pivotto 3885562587 Query Logging styling (#6594)
5 years ago
Tobias Guggenmos 6534ce843f PromQL: Use a sync.Pool for the generated parser structure (#6591)
5 years ago
Guangwen Feng 835c27a76b Fix typo in comment for func Lex (#6588)
5 years ago
Tobias Guggenmos b18b6cb332 PromQL: Avoid lexer item copies and allocations (#6584)
5 years ago
Tobias Guggenmos 4aef43a9f5 Cleanup: Remove parser switching logic (#6583)
5 years ago
Tobias Guggenmos 2064abab40 Cleanup: Remove unused variable (#6581)
5 years ago
Tobias Guggenmos 7c7746257c Cleanup: remove function that does not do anything (#6580)
5 years ago
Tobias Guggenmos d8bc24349c PromQL: Fix unary operator precedence (#6579)
5 years ago
Julien Pivotto 9d9bc524e5 Add query log (#6520)
5 years ago
Tobias Guggenmos 3d6cf1c289 PromQL: Make parser completely generated (#6548)
5 years ago
Julien Pivotto 577e738986 Cleanup PromQL functions (#6551)
5 years ago
Julien Pivotto e0afec906f add absent_over_time (#6490)
5 years ago
Josh Soref 91d76c8023 Spelling (#6517)
5 years ago
Tobias Guggenmos 213a8fe89a PromQL: Parse Series descriptions using the generated parser (#6494)
5 years ago
Julien Pivotto f363a71ef7 promql: function: fix typo (#6501)
5 years ago
Julien Pivotto 4b3bab890d Fix absent output where two label matchers are identical (#6493)
5 years ago
Tobias Guggenmos a48acbcb23 PromQL: Fix parser benchmark (#6495)
5 years ago
Tobias Guggenmos 1e0cd28bf6 PromQL: Support trailing commas in grouping opts (#6480)
5 years ago
Julien Pivotto f315c69129 promql: fix typo in value.go (#6491)
5 years ago
Tobias Guggenmos db1258f2a5 PromQL: Refactor error message generation (#6481)
5 years ago
Tobias Guggenmos 9e34f08ac3 PromQL: Parse grouping opts with the generated parser (#6472)
5 years ago
Tobias Guggenmos 53615412b4 PromQL: Parse Metrics using generated parser (#6466)
5 years ago
Tobias Guggenmos b38b25e9e1 Add Benchmark for the PromQL Parser (#6355)
5 years ago
Tobias Guggenmos 8cb4a48e2e PromQL: Parse label sets using the generated parser (#6432)
5 years ago
Tobias Guggenmos 5c503d85f7 PromQL: export lexer (#6435)
5 years ago
Tobias Guggenmos 35c1f31721 PromQL: Use more standart format for error positions (#6433)
5 years ago
Tobias Guggenmos cd39ebe7c6 PromQL: export function list (#6434)
5 years ago
Mark Nevill b0a5c51b95 Return unused point slice to pool in Call and VectorSelector eval. (#6427)
5 years ago
Tobias Guggenmos 3bb715031f PromQL: Use generated parser to parse label matchers (#6410)
5 years ago
Garrett 5a9c4acfbf Pushdown aggregator group by through read hint (#6401)
5 years ago
Tobias Guggenmos 408574a6e1 promql: Allow injecting fake tokens into the generated parser (#6381)
5 years ago
Tobias Guggenmos bbd92b85da promql: Use capitalized names for item types (#6371)
5 years ago
Tobias Guggenmos c229ed17e2 promql: Implement yyLexer interface (#6370)
5 years ago
Bartosz Jakubski 80ba03c67d fix subquery with offset conversion to string (#6373)
5 years ago
Tobias Guggenmos c63259b83c promql: Clean up parser struct (#6360)
5 years ago
Tobias Guggenmos d0cff29749 PromQL: Reduce Code duplication in AST traversion (#6362)
5 years ago
Tobias Guggenmos ac3932ea35 Improve PromQL parser performance by making it non-concurrent (#6356)
5 years ago
Harkishen Singh 37d666949c fixes space issue in duration range promql (#6295)
5 years ago
Tobias Guggenmos fe80cf4734 promql: Eliminate dead code (#6215)
5 years ago
Krasi Georgiev 5b8ff9b8a4
Merge the 2.13 release branch (#6169)
5 years ago
Alex Dzyoba e3882629ba promql: Move tests to testutil (#6103)
5 years ago
AllenZMC 1e62435960 fix wrong spells in live_reader.go (#5899)
5 years ago
yuxiaobo96 5f6a56a0bb Third correction (#6012)
5 years ago
johncming ac3cedb108 promql: Modify the order of return values. (#5940)
5 years ago
johncming d1b3a6e013 promql: Optimize the writing (#5941)
5 years ago
Krzysztof Kowalczyk 6e53980bbf fix fuzz targets (#5851)
5 years ago
AllenZMC 3638e4ab18 fix mis-spelling in fuzz.go (#5848)
5 years ago
Chris Marchbanks 529ccff07b
Remove all usages of stretchr/testify
5 years ago
Chris Marchbanks 0685eb5395
Refactor testutil.NewStorage into a new package
5 years ago
AllenZMC 04cb37fea8 fix wrong spells in query_logger.go (#5843)
5 years ago
ethan 8928094b56 func name ref correct "qauntile" -> "quantile" (#5834)
5 years ago
AllenZMC 8d6ec5acdc fix word 'seriess' to 'series' (#5828)
5 years ago
AllenZMC ead0933dd9 fix word 'substracting' to 'subtracting' (#5822)
5 years ago
Advait Bhatwadekar 5d401f1e1b Added query logging for prometheus. Issue #1315 (#5794)
5 years ago
Ganesh Vernekar 588eb20018
Efficient iteration and search in HashForLabels and HashWithoutLabels (#5707)
5 years ago
Thomas Jackson 91d7175eaa Add storage.Warnings to LabelValues and LabelNames (#5673)
6 years ago
beorn7 dd81912554 Add objectives to Summaries
6 years ago
Thomas Jackson a000cec011 Re-use label builder in promql aggregation (#5641)
6 years ago
Brian Brazil 36dbf042e3
Correctly handle {__name__="a"} (#5552)
6 years ago
Simon Pasquier 45506841e6
*: enable all default linters (#5504)
6 years ago
Björn Rabenstein 0be9388f8d
Merge pull request #5463 from prometheus/beorn7/templating
6 years ago
Goutham Veeramachaneni 3cc5f9d880 Make sure subquery range is taken into account for selection (#5467)
6 years ago
Bjoern Rabenstein a92ef68dd8 Fix staticcheck errors
6 years ago
Julius Volz bc1c7f1809 Fix scalar-vector comparisons (#5454)
6 years ago
Bryan Boreham 69dd090880 Check for cancellation on every step of a range evaluation
6 years ago
Bryan Boreham e4a37d0986 Replace select with simpler error check
6 years ago
Tariq Ibrahim 8fdfa8abea refine error handling in prometheus (#5388)
6 years ago
Julius Volz 8155cc4992
Expose lexer item types (#5358)
6 years ago
Mario Trangoni 5354ffff99 Fix some spelling issues (#5361)
6 years ago
Daisy T 683fbc59ec exponentation operator to drop metric name in result of op operation (#5329)
6 years ago
Brian Brazil 858c363e94 Fix panic when aggregator param is not a literal.
6 years ago
Nguyen Hai Truong aed9ea144a Remove duplicated words in comments
6 years ago
Tariq Ibrahim a2a6e24f9f show list of offending labels in the error message in many-to-many scenarios (#5189)
6 years ago
JoeWrightss e158c53fa9 Fix some typos in comment (#5175)
6 years ago
Brian Brazil c66aeb3fff
In histogram_quantile merge buckets with equivalent le values (#5158)
6 years ago
Bryan Boreham 8841692a63 Use the context associated with the inner evaluation span (#5130)
6 years ago
Matt Layher c44cd7e166
Merge pull request #5102 from prometheus/mdl-gofmt
6 years ago
Matt Layher 302148fd69 *: apply gofmt -s
6 years ago
Matt Layher f62fd2bfc9 promql: use subtests in TestLexer
6 years ago
Matt Layher 43c9d9e91f promql: apply golint suggestions (#5066)
6 years ago
beorn7 305f383af4 Adjust test_test.go to new Select return order
6 years ago
beorn7 d6841c52e0 Merge branch 'release-2.6'
6 years ago
Ganesh Vernekar 341f04ca9c
Empty slice after last append in promql test LazyLoader
6 years ago
Simon Pasquier f678e27eb6
*: use latest release of staticcheck (#5057)
6 years ago
Tom Wilkie 6e08029b56
Move err to be the last return value from storage.Select. (#5054)
6 years ago
Ganesh Vernekar dbe55c1352 Subquery (#4831)
6 years ago
Tom Wilkie e1d9bf77f1
Export the error field in ErrStorage, so we can 'throw' it outside the package. (#4954)
6 years ago
mknapphrt f0e9196dca Return warnings on a remote read fail (#4832)
6 years ago
Ben Kochie c6399296dc
Fix spelling/typos (#4921)
6 years ago
Ganesh Vernekar cfb3769274 Lazily load samples for unit testing (#4851)
6 years ago
Ganesh Vernekar ca93fd544b /api/v1/labels endpoint for getting all label names (#4835)
6 years ago
Goutham Veeramachaneni 1f053f897b
Merge pull request #4628 from bboreham/fix-storage-error
6 years ago
Brian Brazil 8edaa8ad4d
Fix goroutine leak in lexer/parser. (#4858)
6 years ago
Frederic Branczyk bda9781ccd
Merge pull request #3839 from brancz/remove-old-alert-record
6 years ago
Chris Marchbanks ab3cdb9500 Allow promql benchmarks to query more samples (#4770)
6 years ago
Kangseok Thomas Lee bec1a2f038 Reordering fields of String datetype (#4751)
6 years ago
Vandewilly 1098ed89d8 Drop 'else' condition when 'if' ends with a return (#4743)
6 years ago
Bryan Boreham 9a956872a3 Make ErrorStorage a concrete type not an interface
6 years ago
Callum Styan 9bca041285 WIP: keep track of samples per query, set a max # of samples (#4513)
6 years ago
Thomas Jackson abf6fe0a98 Change max/min over_time to handle NaNs properly (#4386)
6 years ago
Tom Wilkie 4c52400708
Limit concurrent remote reads. (#4656)
6 years ago
Harsh Agarwal 18a9a390b5 Add duplicate-labelset check for range/instant vectors (#4589)
6 years ago
Ganesh Vernekar 576ee4d309 Label name check for 'count_values' (#4585)
6 years ago
Ganesh Vernekar 73db8b8cea [bugfix] Parse negative value in PromQL (#4564)
6 years ago
Dan Cech 9f4cb06a37 use Welford/Knuth method to compute standard deviation and variance (#4533)
6 years ago
Julius Volz 8fbe1b5133
Handle a bunch of unchecked errors (#4461)
6 years ago
Goutham Veeramachaneni 71855a22a4
Add tracing spans to promql (#4436)
6 years ago
Frederic Branczyk b0b3e3dd74
promql: Remove old and unused alerting/reconding syntax
6 years ago
Benjamin Raskin 9353696d77 Fix spelling and holt-winters check (#4424)
6 years ago
Thomas Jackson 56daa1f28a Only add LookbackDelta to vector selectors (#4399)
6 years ago
Alin Sinpalean 372e7652b7 Reuse (copy) overlapping matrix samples between range evaluation steps (#4315)
6 years ago
Tony Lee bcdaf8e2d2 add unused pointslices to the pool (#4363)
6 years ago
Alin Sinpalean e3b775b78b Simplify BufferedSeriesIterator usage (#4294)
6 years ago
Julius Volz 219e477272 Fix some (valid) lint errors (#4287)
6 years ago
Thomas Jackson 92c6f0c92e Add offset to selectParams (#4226)
6 years ago
Alin Sinpalean 96fb0b2155 Optimize PromQL aggregations (#4248)
6 years ago
Tom Wilkie 3228814456 Don't forget to register query_duration_seconds{slice="queue_time"} (#4381)
6 years ago
Thomas Jackson a6dace8829 Check for timeout in each iteration of matrixSelector (#4300)
7 years ago
Thomas Jackson 630f42fcf1 Timeout if populating iterators takes too long (#4291)
7 years ago
Alin Sinpalean 91ce63a140 Log the line when failing a PromQL test. (#4272)
7 years ago
Thomas Jackson 404abe0f1c Bubble up errors to promql from populating iterators (#4136)
7 years ago
Mario Trangoni 0e2aa35771 promql: fix unconvert issues (#4040)
7 years ago
Brian Brazil dd6781add2 Optimise PromQL (#3966)
7 years ago
Henri DF 986674a790 Make some lexing errors more informative (#4167)
7 years ago
Elif T. Kuş 57dcdfb15f Rewrote tests with testutil for several test files (#4086)
7 years ago
Karsten Weiss d79d573f71 Fix spelling mistakes found by codespell (#4065)
7 years ago
David King 6286c10df0 Fix OOM when a large K is used in topk queries (#4087)
7 years ago
Tony Lee 7cd56f56df add queue_time slice to query_duration_seconds (#4050)
7 years ago
Warren Fernandes d49a3df55b Parser test cleanup (#3977)
7 years ago
Anton Tereshchenkov 18bbec050c promql: propagate storage errors
7 years ago
Brian Brazil bf7d87aed2 Cleanup storage from all tests.
7 years ago
Brian Brazil c0ce35d2d3 Only show debug output on test failure
7 years ago
Brian Brazil e6ea146c81 Make benchmark tests pass
7 years ago
Nikunj Aggarwal 998dfcbac6 Expose itemtype outside the package (#3933)
7 years ago
ferhat elmas ffa673f7d8 General simplifications (#3887)
7 years ago
Fabian Reinartz 309c666426
Merge pull request #3671 from prometheus/queryparams
7 years ago
Fabian Reinartz 7ccd4b39b8 *: implement query params
7 years ago
Krasi Georgiev a53d4ed197 drop metric name for bool modifier (#3821)
7 years ago
Krasi Georgiev 4801573b64 time() return milliseconds (#3811)
7 years ago
Julius Volz 953af2c089
promql: Make printer formatting less vintage (#3721)
7 years ago
Julius Volz 1e943fc10a
promql: Fix printing of empty without() (#3719)
7 years ago
Brian Brazil b418063d1a
Add tests for negative selectors. (#3616)
7 years ago
Fabian Reinartz f8fccc73d8 promql: remove global metrics
7 years ago
Fabian Reinartz 83cd270ea4 *: adapt to storage interface changes
7 years ago
David Kaltschmidt 87c46ea6c3 Renamed TotalEvalTime to EvalTotalTime
7 years ago
David Kaltschmidt c93e54d240 Adds execution timer stats to the range query
7 years ago
Julius Volz 099df0c5f0 Migrate "golang.org/x/net/context" -> "context" (#3333)
7 years ago
Brian Brazil 7158675aa8 Add back continue.
7 years ago
Brian Brazil 99905f82a6 Remove keep_common modifier.
7 years ago
Brian Brazil b2ac3d2d86 Remove count_scalar and drop_common_labels.
7 years ago
Brian Brazil 67274f0794 Remove 4 interval staleness heuristic. (#3244)
7 years ago
Julius Volz f7e8348a88 Re-add contexts to storage.Storage.Querier() (#3230)
7 years ago
Fabian Reinartz d21f149745 *: migrate to go-kit/log
7 years ago
Fabian Reinartz 87918f3097 Merge branch 'master' into dev-2.0
7 years ago
Brian Brazil 2354c2544b Set timestamp for date functions (#3070)
7 years ago
Fabian Reinartz 25f3e1c424 Merge branch 'master' into mergemaster
7 years ago
Brian Brazil 4c8173acac Use timestamp of a sample in deriv() to avoid FP issues (#2958)
7 years ago
Alexey Palazhchenko 695ec0b981 Fix few typos. (#2962)
7 years ago
Goutham Veeramachaneni 4194d2ac79 Call At() only if Next() is true
7 years ago
Fabian Reinartz dba7586671 Merge branch 'master' into dev-2.0
7 years ago
Tom Wilkie 835eb8c653 Add _test.go suffix to promql/{bench.go, test.go} to prevent importing the testing package in a normal binary.
7 years ago
Goutham Veeramachaneni b7eddbcd98 textparse: Add fuzzing and fix bug caught
7 years ago
Fabian Reinartz ca2b68889b Merge branch 'master' into dev-2.0
8 years ago
Fabian Reinartz f46a8e9ea4 Merge pull request #2854 from prometheus/promql-rune
8 years ago
Goutham Veeramachaneni d407bd150c Consolidate the duration params in CLI
8 years ago
Brian Brazil 6f5d952132 Check for invalid utf-8 in lexer strings.
8 years ago
Harsh Agarwal 16867c89a7 implement label_join issue 1147 (#2806)
8 years ago
Goutham Veeramachaneni 507790a357
Rework logging to use explicitly passed logger
8 years ago
Goutham Veeramachaneni baf5b0f0fc Fix error where we look into the future. (#2829)
8 years ago
Brian Brazil 220e78b9c3 Consider a series stale after 4.1 intervals with no data.
8 years ago
Brian Brazil c02c25d5ba Allow peeking back further in buffer.
8 years ago
Brian Brazil a5cf25743c Move stalness check into a function
8 years ago
Brian Brazil 80b40e6d91 Add initial staleness handing to promql.
8 years ago
Fabian Reinartz 6e804b3497 Merge branch 'master' into dev-2.0
8 years ago
Brian Brazil fcc88f0e1e query/query_range should return eval timestamp
8 years ago
Brian Brazil 517b81f927 Add timestamp() function.
8 years ago
Tom Wilkie 4d9b917d11 Instrument Prometheus with OpenTracing (#2554)
8 years ago
Fabian Reinartz 0f3110487d Merge remote-tracking branch 'origin/dev-2.0' into dev-2.0
8 years ago
Fabian Reinartz 73b8ff0ddc Merge branch 'master' into dev-2.0
8 years ago
Brian Brazil 5c9a6ce747 Add license to files.
8 years ago
Jack Neely 896f951e68 Force buckets in a histogram to be monotonic for quantile estimation (#2610)
8 years ago
Tom Wilkie f0e8a5f37c Add promql.ErrStorage, which is interpreted by the API as a 500.
8 years ago
Fabian Reinartz c389193b37 Merge branch 'master' into dev-2.0
8 years ago
Fabian Reinartz 0ecd205794 promql: Use buffer pool for matrix allocations
8 years ago
Fabian Reinartz b09b90a940 Correctly close querier on error, revendor tsdb
8 years ago
Goutham Veeramachaneni 6634984a38
Comments and Typo Fixes
8 years ago
Fabian Reinartz 9304179ef7 Merge branch 'master' into dev-2.0
8 years ago
Alex Somesan 18cd7246b5 Instrument query engine timings (#2418)
8 years ago
Fabian Reinartz 5772f1a7ba retrieval/storage: adapt to new interface
8 years ago
Fabian Reinartz 1d3cdd0d67 Merge branch 'master' into dev-2.0-rebase
8 years ago
Fabian Reinartz 035976b275 retrieval: handle not found error correctly
8 years ago
Fabian Reinartz ad9bc62e4c storage: extend appender and adapt it
8 years ago
André Carvalho c43dfaba1c Add max concurrent and current queries engine metrics (#2326)
8 years ago
Fabian Reinartz bc20d93f0a storage: rename iterator value getters to At()
8 years ago
Fabian Reinartz 28f547bcc7 api/v1: fix tests, restore series queries
8 years ago
Fabian Reinartz e94b0899ee rules: fix tests, remove model types
8 years ago
Fabian Reinartz f8fc1f5bb2 *: migrate ingestion to new batch Appender
8 years ago
Fabian Reinartz 71fe0c58a8 promql: misc fixes
8 years ago
Fabian Reinartz fecf9532b9 *: fix misc compile errors
8 years ago
Fabian Reinartz 0492ddbd4d *: fully decouple tsdb, add new storage interfaces
8 years ago
Fabian Reinartz 9ea10d5265 promql: use labels.Builder to modify labels
8 years ago
Fabian Reinartz c6cd998905 promql: use local labels, add conversion
8 years ago
Fabian Reinartz ff504af2aa promql: undo accidental exports
8 years ago
Fabian Reinartz 6dedf89cc3 promql: rename SampleStream to Series
8 years ago
Fabian Reinartz c5f225b920 promql: export Sample
8 years ago
Fabian Reinartz 65581a3d46 promql: export SmapleStream
8 years ago
Fabian Reinartz 6315d00942 promql: export String value
8 years ago
Fabian Reinartz ac5d3bc05e promql: scalar T/V and Point
8 years ago
Fabian Reinartz 09666e2e2a promql: make scalar public
8 years ago
Fabian Reinartz b3f71df350 promql: make matrix exported
8 years ago
Fabian Reinartz a62df87022 promql: rename vector
8 years ago
Fabian Reinartz 15a931dbdb promql: migrate model types, use tsdb interfaces
8 years ago
Tristan Colgate ab60bc3929 Fix export of grouping modifier
8 years ago
Tristan Colgate 68fc15fe4e Report type names in the form used in documentation
8 years ago
beorn7 4e3abc6cbf Simply use `math.Mod(float64, float64)` after all
8 years ago
beorn7 5cf5bb427a Check for int64 overflow when converting from float64
8 years ago
beorn7 92c0ef1a92 Merge branch 'release-1.2' into beorn7/release
8 years ago
beorn7 07f1bdfe94 Fix MOD binop for scalars and vectors
8 years ago
Brian Brazil e1cfc994f7 Correctly handle on() in alerts. (#2096)
8 years ago
Brian Brazil c4b4a58e3a Correctly handle on() in alerts. (#2096)
8 years ago
Fabian Reinartz 8fa18d564a storage: enhance Querier interface usage
8 years ago
Fabian Reinartz ccbce0c51f promql: handle NaN in changes() correctly
8 years ago
Julius Volz c187308366 storage: Contextify storage interfaces.
8 years ago
Julius Volz ed5a0f0abe promql: Allow per-query contexts.
8 years ago
Tobias Schmidt 29ced0090f Fix common english misspellings
8 years ago
Matt Bostock a0201036fa PromQL: Add tests for time/date funcs with arg
8 years ago
Matt Bostock 9628eb5998 PromQL: Add minute() function
8 years ago
Tobias Schmidt 04ae6196f2 Fix parsing of label names which are also keywords
8 years ago
Fabian Reinartz ab88057063 Merge pull request #1908 from prometheus/on-dates
8 years ago
Brian Brazil 4680daf237 Default date functions to current time.
8 years ago
Fabian Reinartz 23ddbd64aa Merge pull request #1925 from hashmap/1898-test-race
8 years ago
Alexey Miroshkin bf0e441576 Instantiate lexer inline for the test
8 years ago
Alexey Miroshkin 485f7dde08 Fix data race in lexer and lexer test
8 years ago
beorn7 71571a8ec4 promql: Fix (and simplify) populating iterators
8 years ago
Brian Brazil ea1318f38b Short names of some date related functions
8 years ago
Brian Brazil d2ca2b496a Add days_in_month function.
8 years ago
Brian Brazil 0ed31c8c47 Sort list of functions.
8 years ago
Brian Brazil fd7822829c Add date related functions.
8 years ago
Fabian Stäber 08b6556ee6 Assume counters start at zero after reset.
8 years ago
Fabian Reinartz 98c0d33567 Merge pull request #1875 from brancz/idelta-function
8 years ago
Frederic Branczyk f02df4138c refactor duplication of irate and idelta functions implementations
8 years ago
Frederic Branczyk dbf83666bb add idelta function
8 years ago
Frederic Branczyk 0ce5e7fe6d move legacy test for delta function
8 years ago
Julius Volz 3bfec97d46 Make the storage interface higher-level.
8 years ago
Brian Brazil 0303ccc6a7 Add quantile aggregator.
8 years ago
Brian Brazil 15f9fe0a45 Factor out quantile fucntion.
8 years ago
Brian Brazil b0342ba9ec Add quantile_over_time function
8 years ago