SvenskaSpel / locust-plugins

A set of useful plugins/extensions for Locust
Apache License 2.0
554 stars 138 forks source link

Add exemple about "extend the web UI to allow you to show custom data along side the built-in Locust stats" #160

Closed obriat closed 8 months ago

obriat commented 8 months ago

The extending web ui page explains that it is possible to "extend the web UI" and points to examples directory, but i could not found a example that shows how to "show custom data along side the built-in Locust stats". Is it possible to add an example about that (or if I missed it add a direct link to the correct code) ?

I want to add hit-miss counter (based on Varnish ou CDN headers values) for each request, I managed to display it on a custom route (thanks to events.py) but it would be great if I could add these as a additional column on the main page. And it will be even greater to be available in vary data export mode.

cyberw commented 8 months ago

Hi! Does this really relate to locust-plugins? File a new ticket in the "core" locust project instead if not, and maybe ping andrewbaldwin44 (as he's the UI expert :)

obriat commented 8 months ago

Sorry, you're right, I mixed my browser tabs and post to the wrong repo :( Anyway thanks for the tip