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

Beauty print metrics json in Alluxio web ui #606

Closed
LuQQiu opened this issue Jul 8, 2021 · 1 comment
Closed

Beauty print metrics json in Alluxio web ui #606

LuQQiu opened this issue Jul 8, 2021 · 1 comment

Comments

@LuQQiu
Copy link
Collaborator

LuQQiu commented Jul 8, 2021

To get the full list of Alluxio master metrics, we visit localhost:19999/metrics/json
To get the full list of Alluxio worker metrics, we visit localhost:30000/metrics/json
However, the page is not quite readable since we https://github.com/Alluxio/alluxio/blob/3f73cf9d28903a90b023db3c92c6c08bd96b902a/core/server/common/src/main/java/alluxio/metrics/sink/MetricsServlet.java#L62

        String result = mObjectMapper.writeValueAsString(mMetricsRegistry);
        response.getWriter().println(result);

Can you beauty print the json or do other transformations to make the metrics more readable by human?

@LuQQiu
Copy link
Collaborator Author

LuQQiu commented Aug 12, 2021

Alluxio/alluxio#13923

@LuQQiu LuQQiu closed this as completed Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant