Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit same metrics that standard HTTP client emits #7

Open
mprokopjc opened this issue Feb 12, 2024 · 1 comment
Open

Emit same metrics that standard HTTP client emits #7

mprokopjc opened this issue Feb 12, 2024 · 1 comment

Comments

@mprokopjc
Copy link

Hey! Thanks for a great extension. It looks very promising and I love that it give people an option to create multiple HTTP clients - for instance per vu. This unlock a way to test API protected by mTLS (each client has different cert).

When I gave this extension a try, I noticed that standard request metrics (http_req*) are not collected. For instance, when I run a sample k6 test with classic k6 HTTP client, I can see following output:

image

...while with the extension, you get only:

image

Would it be possible to collect those as well? As it is critical visibility piece for majority of perf test. Thanks!

@domsolutions
Copy link
Owner

Hi @mprokopjc

Thanks for your feedback. You should get a few more metrics if you run more than 1 req i.e:

./k6 run -u 250 -d 10s -q ./file-stream-upload.js 

     ✓ check status is 200

     checks...............: 100.00% ✓ 117129       ✗ 0    
     data_received........: 0 B     0 B/s
     data_sent............: 0 B     0 B/s
     http_req_duration....: avg=20.44ms min=223.18µs med=12.93ms max=1.38s p(90)=41.39ms p(95)=55.58ms
     http_reqs............: 116879  11671.351065/s
     iteration_duration...: avg=21.17ms min=311.78µs med=13.5ms  max=1.38s p(90)=43.01ms p(95)=57.71ms
     iterations...........: 117129  11696.315668/s
     vus..................: 250     min=250        max=250
     vus_max..............: 250     min=250        max=250

But indeed we are missing a lot of metrics, this is mentioned on the README and is due to a restriction on the fasthttp package which doesn't allow us to record these metrics.

I will try to work on this when I get some time, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants