forked from grafana/loki
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LogQL: Simple JSON expressions (grafana#3280)
* New approach, still rough Signed-off-by: Danny Kopping <[email protected]> * Adding benchmark Signed-off-by: Danny Kopping <[email protected]> * Adding tests Signed-off-by: Danny Kopping <[email protected]> * Minor refactoring Signed-off-by: Danny Kopping <[email protected]> * Appeasing the linter Signed-off-by: Danny Kopping <[email protected]> * Further appeasing the linter Signed-off-by: Danny Kopping <[email protected]> * Adding more tests Signed-off-by: Danny Kopping <[email protected]> * Adding documentation Signed-off-by: Danny Kopping <[email protected]> * Docs fixup Signed-off-by: Danny Kopping <[email protected]> * Removing unnecessary condition Signed-off-by: Danny Kopping <[email protected]> * Adding extra tests from suggestion in review Signed-off-by: Danny Kopping <[email protected]> * Adding JSONParseErr Signed-off-by: Danny Kopping <[email protected]> * Adding test to cover invalid JSON line Signed-off-by: Danny Kopping <[email protected]> * Adding equivalent benchmarks for JSON and JSONExpression parsing Signed-off-by: Danny Kopping <[email protected]> * Adding suffix if label would be overridden Signed-off-by: Danny Kopping <[email protected]> * Reparenting jsonexpr directory to more appropriate location Signed-off-by: Danny Kopping <[email protected]> * Setting empty label on non-matching expression, to retain parity with label_format Signed-off-by: Danny Kopping <[email protected]> * Adding statement about returned complex JSON types Signed-off-by: Danny Kopping <[email protected]> * Added check for valid label name Signed-off-by: Danny Kopping <[email protected]> * Making json expressions shardable Signed-off-by: Danny Kopping <[email protected]>
- Loading branch information
1 parent
29621a1
commit c7801e0
Showing
16 changed files
with
1,937 additions
and
421 deletions.
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
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
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
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.