Render a report of metrics locally
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.
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!
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.
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.
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.
Thank you for publishing this !