-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logqv2 optimization #2778
Logqv2 optimization #2778
Commits on Oct 1, 2020
-
Adds logfmt, regexp and json logql parser
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 03279b1 - Browse repository at this point
Copy the full SHA 03279b1View commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 31c2f3f - Browse repository at this point
Copy the full SHA 31c2f3fView commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for eaf72bd - Browse repository at this point
Copy the full SHA eaf72bdView commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7d1dc7b - Browse repository at this point
Copy the full SHA 7d1dc7bView commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 484afc1 - Browse repository at this point
Copy the full SHA 484afc1View commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0121a3c - Browse repository at this point
Copy the full SHA 0121a3cView commit details -
Refactor to pipeline and implement ast parsing.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 62f2829 - Browse repository at this point
Copy the full SHA 62f2829View commit details -
Fixes the lexer for duration and range
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 89c489c - Browse repository at this point
Copy the full SHA 89c489cView commit details -
Fixes all tests and add some for label filters
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4238173 - Browse repository at this point
Copy the full SHA 4238173View commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 88ad104 - Browse repository at this point
Copy the full SHA 88ad104View commit details -
Add tests for fmt label and line with validations.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c7791a4 - Browse repository at this point
Copy the full SHA c7791a4View commit details -
Polishing parsers and add some more test cases
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0651e25 - Browse repository at this point
Copy the full SHA 0651e25View commit details -
Finish the unwrap parser, still need to add more tests
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4c0570d - Browse repository at this point
Copy the full SHA 4c0570dView commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 01e93c0 - Browse repository at this point
Copy the full SHA 01e93c0View commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e455c88 - Browse repository at this point
Copy the full SHA e455c88View commit details -
Add more tests which lead me to find a bug in the lexer
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8bc18e5 - Browse repository at this point
Copy the full SHA 8bc18e5View commit details -
Add more tests and fix all engine tests
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 08d2cf7 - Browse repository at this point
Copy the full SHA 08d2cf7View commit details -
Fixes match stage in promtail pipelines.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b801417 - Browse repository at this point
Copy the full SHA b801417View commit details -
Hook Pipeline into ingester, tailer and storage.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 850b003 - Browse repository at this point
Copy the full SHA 850b003View commit details -
Correctly setup sharding for logqlv2
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 31c26c0 - Browse repository at this point
Copy the full SHA 31c26c0View commit details
Commits on Oct 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for b5e11d0 - Browse repository at this point
Copy the full SHA b5e11d0View commit details -
Adds quantile_over_time, grouping for non associate range aggregation…
… parsing and moar tests
Configuration menu - View commit details
-
Copy full SHA for 0fd6018 - Browse repository at this point
Copy the full SHA 0fd6018View commit details
Commits on Oct 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2ca6677 - Browse repository at this point
Copy the full SHA 2ca6677View commit details
Commits on Oct 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 4effb67 - Browse repository at this point
Copy the full SHA 4effb67View commit details
Commits on Oct 6, 2020
-
Improve the lexer to support more common identifier as functions.
Also add duration convertion for unwrap. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 832a977 - Browse repository at this point
Copy the full SHA 832a977View commit details -
Fixes the frontend logs to include org_id.
The auth middleware was happening after the stats one and so org_id was not set 🤦. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6563d6e - Browse repository at this point
Copy the full SHA 6563d6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 92f7c39 - Browse repository at this point
Copy the full SHA 92f7c39View commit details
Commits on Oct 9, 2020
-
Support byte sizes in label filters.
This patch extends the duration label filter with support for byte sizes such as `1kB` and `42MiB`.
Configuration menu - View commit details
-
Copy full SHA for 5578dbb - Browse repository at this point
Copy the full SHA 5578dbbView commit details
Commits on Oct 12, 2020
-
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 13132ad - Browse repository at this point
Copy the full SHA 13132adView commit details -
Fixes json parser with prometheus label name rules.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for db07446 - Browse repository at this point
Copy the full SHA db07446View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78973cf - Browse repository at this point
Copy the full SHA 78973cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbacba7 - Browse repository at this point
Copy the full SHA bbacba7View commit details -
Merge pull request #5 from jeschkies/karsten/bytes-filter
Support byte sizes in label filters.
Configuration menu - View commit details
-
Copy full SHA for 25dd730 - Browse repository at this point
Copy the full SHA 25dd730View commit details
Commits on Oct 13, 2020
-
Wip error handling, commit before big refactoring.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c054a5d - Browse repository at this point
Copy the full SHA c054a5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e7d8234 - Browse repository at this point
Copy the full SHA e7d8234View commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5ab8b5c - Browse repository at this point
Copy the full SHA 5ab8b5cView commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5272d91 - Browse repository at this point
Copy the full SHA 5272d91View commit details
Commits on Oct 14, 2020
-
Got something that builds and throw __error__ labels properly now.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1aa1609 - Browse repository at this point
Copy the full SHA 1aa1609View commit details -
Add error handling + fixes groupins and post filtering.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1af9c14 - Browse repository at this point
Copy the full SHA 1af9c14View commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 960ef5a - Browse repository at this point
Copy the full SHA 960ef5aView commit details
Commits on Oct 15, 2020
-
Fixes a races in the log pipeline.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for de83465 - Browse repository at this point
Copy the full SHA de83465View commit details -
Unsure the key is parsable and valid.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 87c4f00 - Browse repository at this point
Copy the full SHA 87c4f00View commit details -
Cleanup and code documentation.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 50315b1 - Browse repository at this point
Copy the full SHA 50315b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54dd6c2 - Browse repository at this point
Copy the full SHA 54dd6c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a50490f - Browse repository at this point
Copy the full SHA a50490fView commit details -
Merge remote-tracking branch 'upstream/master' into logql-parser
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for cbbc37c - Browse repository at this point
Copy the full SHA cbbc37cView commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 801b721 - Browse repository at this point
Copy the full SHA 801b721View commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1aee415 - Browse repository at this point
Copy the full SHA 1aee415View commit details -
Fix go1.15 local failing test.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1ea917f - Browse repository at this point
Copy the full SHA 1ea917fView commit details
Commits on Oct 16, 2020
-
Fixes race conditions in the batch iterator.
We should never advance an iterator in parallel. Unfortunately before the code was building iterators while advancing previous one, building iterator can advance iterator and thus creates a race condition. This changeset make sure we only fetch chunks in advance and build iterator and iterate over them in sequence. Also add support for labels in the cacheIterator which is required for logqlv2. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for faecc80 - Browse repository at this point
Copy the full SHA faecc80View commit details -
Handle panic in the store goroutine.
This could cause Loki to crash if a panic happens in the store since it was happening in another goroutine. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 87c3c4b - Browse repository at this point
Copy the full SHA 87c3c4bView commit details -
Now that races are gone we can use a global decoder.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 20e9087 - Browse repository at this point
Copy the full SHA 20e9087View commit details
Commits on Oct 19, 2020
-
Improve labels handling in all LogQL stages.
benchmark before: ``` pkg: github.com/grafana/loki/pkg/logql/log Benchmark_Pipeline Benchmark_Pipeline-16 107580 10271 ns/op 6387 B/op 67 allocs/op PASS ok github.com/grafana/loki/pkg/logql/log 1.228s ``` after ``` pkg: github.com/grafana/loki/pkg/logql/log Benchmark_Pipeline Benchmark_Pipeline-16 199170 5670 ns/op 3307 B/op 54 allocs/op PASS ok github.com/grafana/loki/pkg/logql/log 1.201s ``` Way less allocations ! Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 40694fc - Browse repository at this point
Copy the full SHA 40694fcView commit details -
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a0b00a8 - Browse repository at this point
Copy the full SHA a0b00a8View commit details
Commits on Oct 20, 2020
-
Merge remote-tracking branch 'upstream/master' into logqv2-optimization
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 14598ca - Browse repository at this point
Copy the full SHA 14598caView commit details
Commits on Oct 21, 2020
-
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b4610c4 - Browse repository at this point
Copy the full SHA b4610c4View commit details