Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
When building an mtail application, I enjoy using the
-one_shotoption 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 | jqBasically, 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