Skip to content
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

Support jq-like filtering and transformation #1

Open
amotl opened this issue Apr 16, 2019 · 4 comments
Open

Support jq-like filtering and transformation #1

amotl opened this issue Apr 16, 2019 · 4 comments
Labels
help wanted Extra attention is needed pitch A pitch for a new feature

Comments

@amotl
Copy link
Contributor

amotl commented Apr 16, 2019

It would be cool to support something like the jq query and transformation language for querying and filtering data requested from the Grafana API, like outlined within grafana/simple-json-datasource#111.

@amotl
Copy link
Contributor Author

amotl commented Nov 8, 2019

We started collecting some ideas about this at [1] and started a discussion topic dedicated to further development of grafana-wtf [2]. Feel welcome to join us there.

[1] https://community.panodata.org/t/tools-for-processing-json/65
[2] https://community.panodata.org/t/developing-grafana-wtf/67

@markmelville
Copy link

markmelville commented Jan 7, 2020

When it comes to JSON transformations, I have been loving Jsonata. The syntax is terse and powerful although sometimes hard to remember. It is also extensible by adding custom functions.

Another option would be to use JMESPATH, which is what is used in the aws-cli to transform the responses from various commands. I am not aware of a javascript implementation.

@amotl
Copy link
Contributor Author

amotl commented Jan 8, 2020

Dear Mark,

thanks for bringing up JSONata in this context. I recently stumbled upon it as well [1] and liked it on a first glimpse. Thanks also for suggesting JMESPath.

Feel free to come up with a respective implementation based on whatever you might like most.

With kind regards,
Andreas.

[1] https://community.panodata.org/t/jsonata-json-query-and-transformation-language/64

@amotl amotl added pitch A pitch for a new feature help wanted Extra attention is needed labels Dec 10, 2021
@amotl
Copy link
Contributor Author

amotl commented Feb 28, 2023

I just discovered an interesting technique to interactively override application settings when they are originally stored in a YAML file, using yq in the application, by @afbjorklund.

limactl start --set='.cpus = 2 | .memory = "2GiB"'

-- lima-vm/lima#1359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed pitch A pitch for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants