Load Testing · Senior · Question 20 of 76
Why look at http_req_duration{expected_response:true} and not just http_req_duration?
- 1Because the untagged metric is only available in k6 Cloud
- 2Fast failures would otherwise make latency look better than it is
- 3Failed requests are always slower and would hide successes
Show the answer
Correct answer: Fast failures would otherwise make latency look better than it is
Explanation
k6 tags each request with expected_response. Latency of successful requests is what an SLO means. Errors are tracked by error rate.