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

Render a report of metrics locally #11

Open
happysalada opened this issue Jun 6, 2024 · 5 comments
Open

Render a report of metrics locally #11

happysalada opened this issue Jun 6, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@happysalada
Copy link

Supporting prometheus us great, but it would be really nice to have a way to get an html (or any format you like ) report locally after your run.

@byronwasti
Copy link
Collaborator

Balter supports the metrics-rs ecosystem, but unfortunately it doesn't look like there is a great embedded solution for the exporter. The list of available exporters is here, but the closest thing (metrics-dashboard) doesn't seem quite right.

I do think this is a valuable thing for Balter to have, so I'm going to play around with a really simple metrics exporter directly to plotly. I'll followup here if I can get something to work!

@happysalada
Copy link
Author

There is another load testing framework for rust called goose. I like your approach better in terms of code, but maybe you can have a look at the html report they generate , i think its a good baseline . although i think anything is fine personally. The feedback loop between running a test and viewing the results should be as seamless as possible. Thats the core product use, where your users drive the most value out of.

@byronwasti
Copy link
Collaborator

I'll take a look at how Goose handles the html report and see if it might be possible to port that to a metrics exporter. I agree with you on the feedback loop, right now setting up prometheus and grafana is a bit of extra overhead. However, at this point its really just a time issue, and finding the time to build this feature out properly.

@byronwasti byronwasti added the enhancement New feature or request label Jun 7, 2024
@byronwasti
Copy link
Collaborator

So I've been working on a solution to this problem that is generic to the metrics-rs ecosystem, and unfortunately it looks like doing that properly is going to be a bit of an investment. I have some prototype MVP code published for it: https://crates.io/crates/metrics-exporter-plotly

Unfortunately the plotly-rs library isn't quite feature-complete (allowing very limited formatting of the plots...) so the output isn't great but does technically work.

I'll keep playing around with ideas in this space, but figured I'd let you know about this in case it solves your use-case.

@happysalada
Copy link
Author

Thank you for publishing this !

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

No branches or pull requests

2 participants