Skip to content

Feature request: JSON output from "stolonctl status" #358

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

Closed
charles-dyfis-net opened this issue Sep 22, 2017 · 2 comments
Closed

Feature request: JSON output from "stolonctl status" #358

charles-dyfis-net opened this issue Sep 22, 2017 · 2 comments

Comments

@charles-dyfis-net
Copy link

At present, parsing the output from "stolonctl status" requires ad-hoc text processing.

An option to provide JSON output would permit easier parsing (with tools such as jq), and provide a means for future extension (by adding additional keys without changing the meaning of existing ones) that wouldn't have potential to impact existing parsers.

With upstream approval/consensus, I'm willing to do the implementation myself.

@sgotti
Copy link
Member

sgotti commented Sep 22, 2017

@charles-dyfis-net stolonctl status just parses the clusterdata, so another option could be to just parse the stolonctl clusterdata json output that contains all the available information. This is what we usually do in our monitoring scripts or for debugging.

I'm not against providing a json output to stolonctl status but it I'll just be a sort of redundant and reworked/cleaned cluster data and will need to be versioned since it could change (the current status output could be improved but it's currently enough for our needs)

@charles-dyfis-net
Copy link
Author

Using clusterdata makes sense to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants