I’m currently working on performance testing using K6 Browser. I need to capture HTTP-related metrics to analyze the performance of my web application. Specifically, I’m looking for ways to obtain detailed metrics for each HTTP request made during the test. We would like to see the results of each HTTP request to understand response times, status codes, and other relevant data.
Can anyone guide me on how to obtain HTTP metrics, including individual results for each request, in K6 Browser? Any help or examples would be greatly appreciated.
In the case of browser tests, you can see here the metrics reported by the browser module. The only HTTP related metrics that are reported are browser_http_req_duration and browser_http_req_failed. This is because the focus of the browser extension is not load testing nor HTTP requests.
Is it possible for your use case to use the HTTP module in protocol tests? That will provide you more detailed metrics for HTTP requests.
our goal is to monitor the HTTP requests during the K6 Load test.
it may give us the visibility on which calls getting fail with Load, as whole system.
can you please help us if any extensions support this case?
You can use the csv or json output --out=csv or --out=json to get detailed metrics from every request, and you can process the data after the test run https://k6.io/docs/results-output/real-time/
Or you can use the xk6-output-plugin and write a plugin for it on any another programming language and process the detailed metrics during the test run https://github.com/szkiba/xk6-output-plugin/