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

One_shot option std out should be raw json #312

Open
mrichins opened this issue Apr 16, 2020 · 0 comments
Open

One_shot option std out should be raw json #312

mrichins opened this issue Apr 16, 2020 · 0 comments

Comments

@mrichins
Copy link

@mrichins mrichins commented Apr 16, 2020

When building an mtail application, I enjoy using the -one_shot option to test the correctness of my mtail progs. However, the output looks like json, but includes a little string "Metrics store:" before the rest of the metrics json is written. This makes programmatically plugging into mtail to automate testing a bit harder.

I had to work around this by invoking it this way mtail -one_shot -progs ./progs -logs <test_log> | tail -c +15 | jq

Basically, I see no benefit to this string existing in the output, but it could also be another CLI option. More than happy to write the PR myself too.

Thanks! Mason

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.