Skip to content

jq backend parser #1143

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

jq backend parser #1143

wants to merge 3 commits into from

Conversation

yesoreyeram
Copy link
Collaborator

@yesoreyeram yesoreyeram commented Feb 5, 2025

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 option jq. 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
  • TBD...

@yesoreyeram
Copy link
Collaborator Author

waiting for grafana/infinity-libs#16 to be merged.

@yesoreyeram
Copy link
Collaborator Author

TODO: Follow up #1140 (comment)

@jcdauchy-moodys
Copy link

Really looking forward for this parser :)

@jcdauchy-moodys
Copy link

@yesoreyeram I guess it won't be in 3.0 version, do you think you can merge it for next release ?

@ivanahuckova ivanahuckova self-assigned this Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants