Interview Prep/SRE & Reliability/Capacity, Load Testing & Chaos Engineering

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'].

All SRE & Reliability questions Roadmap: SRE & incident response

More on Capacity, Load Testing & Chaos Engineering