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.
Background
Currently infinity supports multiple parsers default/frontend parsing, uql/frontend parsing, groq/frontend parsing and jsonata/backend parsing. Out of all these parsing options, only
jsonata/backend
parsing supports backend features such as alerting, recorded queries, public dashboards etc. Also most of the community, customers and users of the plugin not much familar with JSONata but familiar with other popular JSON parsing optionjq
. There is always a continous ask from the community to add jq based parsing option.This PR adds support for
jq
(backend) parsing option via the https://github.com/itchyny/gojq library. It is the backend port of the jq frontend library.Though there are official frontend packages available, We aren't adding jq frontend parser. Eventually we want to move from frontend to backend. So this may become baggage for us to maintain. So we are adding only the jq golang ported version / backend library.
How to test
git checkout jq-parser && yarn && yarn build && mage -v && docker compose up