What are the key k6 built-in metrics?
BeginnerConceptCapacity, Load Testing & Chaos Engineering
Answer
http_reqs: total requests and rate.http_req_failed: rate of failed requests (by default status >= 400 or network error).http_req_duration: total time (sending + waiting + receiving), excludes connection setup.http_req_waiting: time to first byte.http_req_connecting,http_req_tls_handshaking: connection costs.iterations,vus,checks,data_received,data_sent.
Thresholds can target tagged sub-metrics, for example 'http_req_duration{name:checkout}': ['p(99)<500'].
More on Capacity, Load Testing & Chaos Engineering
What is capacity planning in SRE?BeginnerWhat is N+1 and N+2 redundancy for capacity?BeginnerHow do you calculate how many instances you need?IntermediateWhat is the difference between load, stress, spike, soak and breakpoint testing?BeginnerWhat is k6 and why do SRE teams use it?BeginnerWrite a minimal k6 test with SLO thresholds.Intermediate