Xk6--browser - How to get metrics for different page

Hi @vish_s02,

The latest (unreleased) version of xk6-browser now supports await and async keywords :tada: If you’re comfortable with building from source then you can follow the guide here – NOTE: Instead of running go install go.k6.io/xk6/cmd/xk6@latest you will need to use go install go.k6.io/xk6/cmd/xk6@main to build from the main branch. We hope to release the latest version of xk6-browser in 1 or 2 weeks, so you can wait for that.

In the meantime, while waiting for the latest release, you can still use the second approach that is outlined in How to read output of xk6-browser - #2 by ankur, which uses influxdb and grafana. This will allow you to select and group metrics based on the URL.

Let us know if that does or doesn’t help,

Cheers,
Ankur

1 Like