Measuring Successful Requests as a Fraction

An availability measure can describe the fraction of eligible requests meeting a specified success rule over an observation interval.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a tiny period
  2. Define which success counts
  3. Choose which events enter the denominator
  4. Combine intervals by using counts

Trace a tiny period

If 98 of 100 eligible read requests succeed, this request-based rate is 98 percent. Excluding invalid requests changes the denominator. See rates and their counts.

Define which success counts

A response that arrives too late may fail the feature's service objective even if its status is successful. State both correctness and timing criteria. Deadline budgets give one relevant limit.[1]

Choose which events enter the denominator

In an interval with one thousand eligible requests and twenty failures, success rate is 98 percent. Including excluded synthetic checks or counting each retry as a separate user outcome can shift that ratio. Define the measurement boundary up front. See frequency estimates.

Eligible observations: 1000
Successful observations: 980
Observed success fraction: .98
Missing observations need their own accounting policy

Combine intervals by using counts

Averaging percentages from a quiet and busy interval weights those periods equally. If each request is the unit, sum successful and total counts before dividing. Track exact observation windows and error definitions.

References

  1. Google, Site Reliability Engineering ↩