K6 metrics dashboard

Hi k6 community, I created a k6 output extension that enables creating web based metrics dashboard for k6. As always, I’m looking forward for your feedback…

5 Likes

This looks awesome! :tada: In the olden days of k6, it actually used to include a built-in web UI, but from what I understand, it was scrapped because it was unmaintained and somewhat sucked :sweat_smile: Deprecate and remove the current Web UI · Issue #300 · grafana/k6 · GitHub

1 Like

This is pretty neat, thanks for yet another awesome contribution @szkiba!

I played with the extension briefly, and I’m wondering what’s the purpose of redirecting to https://xk6-dashboard.netlify.app/ ? Couldn’t you serve the UI from the same server you start for the other endpoints, just at /?

I think you could bundle the static files in the same k6 executable with embed, and it will have a similar UX as the old k6 built-in dashboard.

FWIW I don’t think the built-in dashboard was a bad idea. The implementation could’ve been better to use something simpler and entirely static (we probably wouldn’t even need Vue.js), but if done right it shouldn’t have a large performance impact, and would’ve been great for simple local tests that don’t need the complexity of setting up a separate metric backend and UI.

1 Like

Hi @imiric ,

thank you for feedback.

I think you could bundle the static files in the same k6 executable with embed , and it will have a similar UX as the old k6 built-in dashboard.

That was exactly how I Implemented the first version of the UI. But until UI is stabilized, it is very complicated to recompile k6 binary on every UI change, so this is why I swiched to externally hosted UI.

On long term, if UI will be stable enough, I’m going to embed the default UI.