Load Testing · Middle · Question 12 of 76
How do you set a threshold for only one endpoint?
- 1Put the threshold inside the request call as an extra argument
- 2Run the endpoint in a separate k6 process with its own options
- 3Tag its requests and use a sub-metric like
http_req_duration{name:search}
Show the answer
Correct answer: Tag its requests and use a sub-metric like http_req_duration{name:search}
Explanation
Thresholds on tagged sub-metrics apply only to matching samples. You can have strict targets for search and looser ones for reports.