Commit Graph

969 Commits (b36d145a9d62387c1550889ff09da23d582cf739)

Author SHA1 Message Date
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
Bryan Boreham 8d47b3d497
Merge pull request #12579 from charleskorn/timestamp
1 year ago
Charles Korn d396282941
Address PR feedback: clarify comment
1 year ago
Charles Korn 145d7457fe
Address PR feedback: use loop to create expected test result
1 year ago
Charles Korn 6087c555ed
Address PR feedback: clarify comment
1 year ago
Charles Korn fb3935e8f9
Address PR feedback: rename method
1 year ago
Julius Volz 531567d46e Drop metric name for "atan2" binary operator
1 year ago
Charles Korn 6903d6edd8
Add test to confirm `timestamp()` behaves correctly when evaluating a range query.
1 year ago
Charles Korn fde6ebb17d
Create per-series iterators only once per selector, rather than recreating it for each time step.
1 year ago
Charles Korn 993618adea
Don't create a new iterator for every time step.
1 year ago
Charles Korn b114c0888d
Simplify loop
1 year ago
Charles Korn a142998052
Expand series set just once
1 year ago
Charles Korn eeface2e17
Inline method
1 year ago
Charles Korn a2a2cc757e
Extract timestamp special case to its own method.
1 year ago
Charles Korn 15fa680117
Add benchmark for query using timestamp()
1 year ago
Julien Pivotto 0a48f93111
Merge pull request #10367 from ianwoolf/pr_add_close_for_query_logger
1 year ago
cui fliter 096ceca44f
remove repetitive words (#12556)
1 year ago
beorn7 162612ea86 histograms: Improve comment
1 year ago
Ziqi Zhao 42d9169ba1 enhance histogram_quantile to get min/max value
1 year ago
Carrie Edwards 2f9bc98b8a Add tests for min and max functions
1 year ago
Carrie Edwards bc0ee4a469 Implement native histogram min and max query functions
1 year ago
Bryan Boreham ce153e3fff Replace sort.Sort with faster slices.SortFunc
1 year ago
Giedrius Statkevičius 3f230fc9f8 promql: convert QueryOpts to interface
1 year ago
Julien Pivotto a605b81b14
Merge pull request #12170 from fpetkovski/parser-inject-functions
1 year ago
Bryan Boreham 67d2ef004d Placate lint
2 years ago
Bryan Boreham bb0d8320dd promql: include parsing in active-query tracking
2 years ago
Bryan Boreham 71fc4f1516 promql: refactor: create query object before parsing
2 years ago
Bryan Boreham 1f3821379c promql: refactor: extract fn to wait on concurrency limit
2 years ago
zenador 191bf9055b
Handle more arithmetic operators for native histograms (#12262)
2 years ago
beorn7 9e500345f3 textparse/scrape: Add option to scrape both classic and native histograms
2 years ago
Justin Lei 7bbf24b707 Make MemoizedSeriesIterator not implement chunkenc.Iterator
2 years ago
Justin Lei 6985dcbe73 Optimize and test MemoizedSeriesIterator
2 years ago
Matthieu MOREL 7e9acc2e46
golangci-lint: remove skip-cache and restore singleCaseSwitch rule
2 years ago
Julien Pivotto f7c6130ff2
Merge pull request #12251 from prymitive/query_samples_total
2 years ago
Matthieu MOREL bae9a21200
Merge branch 'main' into linter/nilerr
2 years ago
beorn7 5b53aa1108 style: Replace `else if` cascades with `switch`
2 years ago
beorn7 c3c7d44d84 lint: Adjust to the lint warnings raised by current versions of golint-ci
2 years ago
Ben Ye fd3630b9a3 add ctx to QueryEngine interface
2 years ago
ianwoolf 79e4bdee8e add Close for ActiveQueryTracker to close the file.
2 years ago
Matthieu MOREL fb3eb21230 enable gocritic, unconvert and unused linters
2 years ago
beorn7 551de0346f promql: Do not return nil slices to the pool
2 years ago
beorn7 817a2396cb Name float values as "floats", not as "values"
2 years ago
beorn7 c0879d64cf promql: Separate `Point` into `FPoint` and `HPoint`
2 years ago
Łukasz Mierzwa b6573353c1 Add query_samples_total metric
2 years ago
Ganesh Vernekar 5588cab8b2
Merge pull request #12173 from bboreham/builder-no-empty-labels
2 years ago
Bryan Boreham 1bb6b8b309
Merge pull request #12190 from bboreham/faster-topk
2 years ago
Oleg Zaytsev 6e2905a4d4
Use zeropool.Pool to workaround SA6002 (#12189)
2 years ago
Bryan Boreham f2fd85df82 promql: use faster heap method for topk/bottomk
2 years ago
Bryan Boreham cf54a14f9c promql: add a benchmark for topk with k > 1
2 years ago
Bryan Boreham b987afa7ef labels: simplify call to get Labels from Builder
2 years ago
Filip Petkovski 3d7783e663
Add nolint for NewParser function
2 years ago
Filip Petkovski 97c7fffbb8
parser: Allow parsing arbitrary functions
2 years ago
Björn Rabenstein 847093479b
Merge pull request #11978 from trevorwhitney/set-counter-hint
2 years ago
Trevor Whitney dd94ebb87b
promql: set CounterResetHint after rate and sum
2 years ago
Bryan Boreham d21229b27a
Merge pull request #12101 from bboreham/disable-slow-promql-tests
2 years ago
Julien Pivotto 1fd59791e1 Update tests
2 years ago
Bryan Boreham be4a9c25f0 promql: disable some slow cases in TestConcurrentRangeQueries
2 years ago
tyltr 24a9678dcc
typo 'efficcient' (#12090)
2 years ago
Justin Lei af1d9e01c7
Refactor tsdbutil for tests/native histograms (#11948)
2 years ago
Björn Rabenstein 60d763282e
Merge pull request #11864 from prometheus/beorn7/histogram2
2 years ago
beorn7 1cfc8f65a3 histograms: Return actually useful counter reset hints
2 years ago
Bryan Boreham 9ae3572d24 TestConcurrentRangeQueries: log query with error
2 years ago
Ganesh Vernekar 57bcbf1888
Merge pull request #11783 from codesome/gauge-histogram
2 years ago
Ganesh Vernekar 3c2ea91a83
tsdb: Test gauge float histograms
2 years ago
Ganesh Vernekar fd89d7892c
Merge pull request #11809 from bboreham/dont-sort-postings-values
2 years ago
Bryan Boreham 80ac0d7c82 promql: add benchmark for match against blank string
2 years ago
Marc Tudurí 49f775d8a0
histograms: Add missing float histograms tests for PromQL (#11780)
2 years ago
Marc Tudurí 9474610baf
Support FloatHistogram in TSDB (#11522)
2 years ago
Bryan Boreham 1b0a29701b promql: optimise aggregation with no labels
2 years ago
Bryan Boreham aafef011b7 Promql: reuse LabelBuilder in aggregations
2 years ago
Bryan Boreham 2c382f5e24 promql: extract function to initialize LabelBuilder
2 years ago
Bryan Boreham ccea61c7bf
Merge pull request #11717 from bboreham/labels-abstraction
2 years ago
Bryan Boreham dbd7021cc2
promql: add test for race conditions in query engine (#11743)
2 years ago
Bryan Boreham aa634e0b7e Update package promql tests for new labels.Labels type
2 years ago
Bryan Boreham 56fefcd812 Update package promql for new labels.Labels type
2 years ago
Bryan Boreham 1695a7ee2f promql: refactor BenchmarkRangeQuery so we can re-use test cases
2 years ago
Bryan Boreham 463f5cafdd storage: re-use iterators to save garbage
2 years ago
Bryan Boreham 3c7de69059 storage: allow re-use of iterators
2 years ago
Alan Protasio 8460807475 fix blank lines
2 years ago
Alan Protasio f8f4ac14a8 Finishing evalSpanTimer always before return
2 years ago
Bryan Boreham 6bdecf377c
Switch from 'sanity' to more inclusive lanuage (#9376)
2 years ago
Ganesh Vernekar bde500e690
Merge pull request #11420 from jesusvazquez/jvp/update-sparsehistogram-with-main-v2
2 years ago
beorn7 bf0847073d histogram: Modify getBound to deal properly with infinity
2 years ago
Jesus Vazquez e934d0f011 Merge 'main' into sparsehistogram
2 years ago
Björn Rabenstein dccfb9db4e
histogram: Remove code replication via generics (#11361)
2 years ago
Giedrius Statkevičius a1d6ba59ac
promql: pass down subquery interval (#11163)
2 years ago
Bryan Boreham 3330d85ba8
Replace sort.Strings and sort.Ints with faster slices.Sort (#11318)
2 years ago
beorn7 a7c519930e histograms: Add Compact method to the normal integer Histogram
2 years ago
Bryan Boreham b01d29cf9e promql: in tests use labels.FromStrings
2 years ago
Julien Pivotto 96d5a32659
Update go to 1.19, set min version to 1.18 (#11279)
2 years ago
Ganesh Vernekar 71489d0e3d
Fix count() for histograms and add test case
2 years ago
Bryan Boreham 8b863c42dd
Optimise relabeling by re-using memory (#11147)
2 years ago
Ganesh Vernekar 9325caa41c
Remove a TODO that is no longer valid (#11186)
2 years ago
Cosrider af79dce8ea
Close file descriptor in query logging (#11148)
2 years ago
beorn7 c9fd3c235d Merge branch 'main' into sparsehistogram
2 years ago
Vilius Pranckaitis 4660656312
Allow setting custom lookback delta for instant queries (#9946)
2 years ago
Levi Harrison 77a7af4461
Add histogram validation (#11052)
2 years ago
Julien Pivotto d41e5a5582
Prettifier: Add spaces with non-callable keywords (#11005)
2 years ago
Łukasz Mierzwa 54a3c3ba3f
Print query that caused a panic (#10995)
2 years ago
beorn7 53982c3562 Merge branch 'main' into sparsehistogram
2 years ago
Oleg Zaytsev d2abe9a58a
Shortcut `ContainsSameLabelset()` (#11000)
2 years ago
beorn7 28f028e938 Merge branch 'main' into sparsehistogram
2 years ago
Harkishen Singh 44fcf876ca
Adds support for prettifying PromQL expression (#10544)
2 years ago
beorn7 9eafed0f79 promql: Add `histogram_count` and `histogram_sum`
2 years ago
beorn7 a3a8f58bb3 promql: Add histogram_fraction function
2 years ago
beorn7 ffaabea91a promql: Refine zero bucket treatment in histogramQuantile
2 years ago
beorn7 40ad5e284a Merge branch 'main' into beorn7/sparsehistogram
3 years ago
Matthieu MOREL 0906f2eafa
refactor (promql): move from github.com/pkg/errors to 'errors' and 'fmt' (#10817)
3 years ago
Bryan Boreham 2e2c014d52
Labels: optimise creation of signature with/without labels (#10667)
3 years ago
Łukasz Mierzwa 08262454a3
Preallocate Labels in labels.Builder (#10749)
3 years ago
Ivo Gosemann e22b54e253 Adds day_of_year function to PromQL
3 years ago
beorn7 3bc711e333 Merge branch 'main' into sparsehistogram
3 years ago
beorn7 d16b314b72 Histogram: Do not render empty buckets in JSON output
3 years ago
Matthieu MOREL e2ede285a2
refactor: move from io/ioutil to io and os packages (#10528)
3 years ago
beorn7 37bbc07118 Histogram: Add jsoniter marshaling
3 years ago
beorn7 99894f6afa Histogram: Implement inefficient JSON rendering
3 years ago
Alan Protasio ce6a643ee8
Changing TotalQueryableSamples from int to int64 (#10549)
3 years ago
beorn7 106e20cde5 Histogram: Fix and simplify histogram_quantile
3 years ago
beorn7 7ee1836ef5 Merge branch 'main' into sparsehistogram
3 years ago
Martina Ferrari 3e4bd4d913 Avoid literal integer overflows in 32 bit arches.
3 years ago
beorn7 4210aac74a Merge branch 'main' into sparsehistogram
3 years ago
Andrew Bloomgarden a64b9fe323 Report PeakSamples in query statistics
3 years ago
Alan Protasio 606ef33d91 Track and report Samples Queried per query
3 years ago
beorn7 9fbcf14e5c histogram: Handle changes of the ZeroThreshold and the Schema
3 years ago
Łukasz Mierzwa a4317bf0ec
Run gofumpt on all files (#10392)
3 years ago
Tobias Klausmann b998636893
Improve error logging for missing config and QL dir (#10260)
3 years ago
jyz0309 e40deb1086 address comment
3 years ago
jyz0309 02e032884a add doc
3 years ago
jyz0309 7f32a5d0d6 add NaN case
3 years ago
Julien Pivotto 9a2e93228e
Switch to grafana/regexp everywhere (#10268)
3 years ago
Matheus Pimenta 8d8ce641a4
error for invalid media type should not be completely swallowed (#10186)
3 years ago
Björn Rabenstein be7ed73efc
Merge pull request #10140 from David-N-Perkins/ISS-9910
3 years ago
Peter Štibraný 6d76f09c58
Extract interface from ActivityQueryTracker and allows passing custom implementation (#10071)
3 years ago
Matej Gera 2c61d29b2a
Tracing: Migrate to OpenTelemetry library (#9724)
3 years ago
beorn7 c2b80d8643 PromQL: Test negative offset in PromQL tests
3 years ago
beorn7 b39f2739e5 PromQL: Always enable negative offset and @ modifier
3 years ago
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