-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
LogQL: Labels and Metrics Extraction #2769
Merged
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
03279b1
Adds logfmt, regexp and json logql parser
cyriltovena 31c2f3f
hook the ast with parsers.
cyriltovena eaf72bd
hook parser with memchunk.
cyriltovena 7d1dc7b
hook parser with the storage.
cyriltovena 484afc1
hook parser with ingesters
cyriltovena 0121a3c
fixes all tests
cyriltovena 62f2829
Refactor to pipeline and implement ast parsing.
cyriltovena 89c489c
Fixes the lexer for duration and range
cyriltovena 4238173
Fixes all tests and add some for label filters
cyriltovena 88ad104
Add label and line format.
cyriltovena c7791a4
Add tests for fmt label and line with validations.
cyriltovena 0651e25
Polishing parsers and add some more test cases
cyriltovena 4c0570d
Finish the unwrap parser, still need to add more tests
cyriltovena 01e93c0
Indent this hell.
cyriltovena e455c88
Moar tests and it works.
cyriltovena 8bc18e5
Add more tests which lead me to find a bug in the lexer
cyriltovena 08d2cf7
Add more tests and fix all engine tests
cyriltovena b801417
Fixes match stage in promtail pipelines.
cyriltovena 850b003
Hook Pipeline into ingester, tailer and storage.
cyriltovena 31c26c0
Correctly setup sharding for logqlv2
cyriltovena b5e11d0
Fixes precedences issue with label filters and add moar tests :v:
cyriltovena 0fd6018
Adds quantile_over_time, grouping for non associate range aggregation…
cyriltovena 2ca6677
Extract with grouping
cyriltovena 4effb67
Adds parsing duration on unwrap
cyriltovena 832a977
Improve the lexer to support more common identifier as functions.
cyriltovena 6563d6e
Fixes the frontend logs to include org_id.
cyriltovena 92f7c39
Merge branch 'fix-orgid-frontend' into logql-parser
cyriltovena 5578dbb
Support byte sizes in label filters.
jeschkies 13132ad
Wip on error handling.
cyriltovena db07446
Fixes json parser with prometheus label name rules.
cyriltovena 78973cf
fixup! Support byte sizes in label filters.
jeschkies bbacba7
Merge remote-tracking branch 'cyril/logql-parser' into karsten/bytes-…
jeschkies 25dd730
Merge pull request #5 from jeschkies/karsten/bytes-filter
cyriltovena c054a5d
Wip error handling, commit before big refactoring.
cyriltovena e7d8234
Merge branch 'logql-parser' of github.com:cyriltovena/loki into logql…
cyriltovena 5ab8b5c
Refactoring in progress.
cyriltovena 5272d91
Work in progress.
cyriltovena 1aa1609
Got something that builds and throw __error__ labels properly now.
cyriltovena 1af9c14
Add error handling + fixes groupins and post filtering.
cyriltovena 960ef5a
400 on pipeline errors.
cyriltovena de83465
Fixes a races in the log pipeline.
cyriltovena 87c4f00
Unsure the key is parsable and valid.
cyriltovena 50315b1
Cleanup and code documentation.
cyriltovena 54dd6c2
Lint.
cyriltovena a50490f
Lint.
cyriltovena cbbc37c
Merge remote-tracking branch 'upstream/master' into logql-parser
cyriltovena 801b721
Fixes frontend handler.
cyriltovena 1aee415
Fixes old test.
cyriltovena 1ea917f
Fix go1.15 local failing test.
cyriltovena File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Refactor to pipeline and implement ast parsing.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
- Loading branch information
commit 62f282999b86aa5611c9ce40f00b101a6250d263
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expr
seems redundant now thatPipelineExpr
is here.