What an error budget is

A service level objective states how reliable a service should be, for example that 99.9 percent of requests succeed. The other side of that target is the amount of failure that is acceptable, which is the error budget. Google's SRE book discusses service level objectives and the use of that allowance to balance reliability against the pace of change. This page turns a request-based target into a count. You enter the number of eligible requests, the number of failures observed so far and the success target, and it returns the allowed failures and what remains of them. Counts are easier to act on than percentages, because a team can see how many more failures it can absorb before a decision is needed.

Allowed failures from a request-based target

Allowed failures = eligible requests × (1 − target / 100), and remaining budget = allowed failures − observed failures. The defaults are 1,000,000 eligible requests, 800 failures and a 99.9 percent target. The allowed fraction is 0.1 percent, or 1,000 requests, and 800 failures leave 200. The page shows the result of the floating-point calculation, so you may see a value like 999.9999999999 in place of 1,000 for the allowed number. That is a representation artifact in the decimal arithmetic of the computer, and it should be read as 1,000. The same happens with other targets, where the displayed value differs from the exact one in the last few digits.

Defining eligible requests

The result is only as good as the definition of eligible. A request-based indicator counts the requests that should count toward the target, usually excluding health checks, requests from known test clients, and requests the service is not meant to answer successfully, such as authentication failures caused by wrong passwords. A failure is also a definition, commonly an HTTP 5xx response or a response slower than a latency threshold. Write the rules down before measuring, because changing them afterward moves the budget. The total of eligible requests in the period is the first input of the page. Requests that are retried by the client should be counted according to the same rule every time, either as one request or as several, so that the numerator and denominator agree.

A strict target and a missed one

A service with 5,000,000 eligible requests, a 99.95 percent target and 1,200 failures has an allowed count of 2,500 and a remaining budget of 1,300. A service with 250,000 requests, a 99 percent target and 2,700 failures has an allowed count of 2,500 and a remaining budget of −200. The negative number means the target has been missed by 200 failures. Both services have the same allowed number, even though one target is far stricter, because the stricter one has twenty times the traffic. The comparison is a reminder that the budget scales with traffic, so a quiet service has few failures to spare even at a modest target.

Tightening the target

Each extra nine cuts the allowed failures to a tenth. With 10,000,000 requests, a target of 99 percent allows 100,000 failures, 99.9 percent allows 10,000, 99.99 percent allows 1,000, and 99.999 percent allows 100. The effort and the cost of meeting a target tend to rise steeply with each step, and the users of a service often cannot tell the difference between the higher levels, since other parts of their path, such as their own network, fail more often. That is the reason SLO documents recommend picking targets that match user needs and not the highest value that seems possible. A target of 100 percent leaves no budget at all, and every single failure would then count as a miss.

Burn rate and pacing

Budget consumption can be compared with the time that has passed in the measurement period. If 80 percent of the budget is gone when 50 percent of the period has passed, the burn rate is 0.8 / 0.5 = 1.6, and the budget will run out before the period ends if the pace continues. The page does not take time as an input, because it works on request counts. You can do the comparison by hand, by dividing the fraction of budget consumed by the fraction of time elapsed. A burn rate above 1 means a miss at the end of the period is likely. A sudden jump, such as a bad release that fails 5 percent of requests for an hour, can use a large part of the budget at once.

Using the budget for decisions

The practical use is a rule for how a team spends reliability. While budget remains, risky releases and experiments can go ahead. When it is exhausted, the team slows down and works on stability until the budget recovers. This only works if the target is agreed with the people who own the product, and if the policy is written down. The page supplies the numbers, and the policy is yours to define. A budget that is always almost untouched may mean the target is too lax or the team is too cautious. A budget that is overspent in most periods is a sign that the target is unrealistic for the current design.

Request-based versus time-based targets

Availability can be defined by time, as in an SLA downtime budget, or by requests, as here. Request-based indicators weight busy periods more heavily, so an outage at a quiet hour costs less budget than the same outage at peak traffic. Time-based targets treat all minutes alike. For services where traffic varies strongly through the day, the request-based view matches user experience more closely. The SLA downtime and uptime pages on this site cover the time-based approach. A time-based target of 99.9 percent over 30 days allows about 43.2 minutes of downtime, while a request-based one allows 0.1 percent of the requests, whenever they occur.

What an error budget calculation does not read

The page assumes a request-based indicator with the eligibility rules you have chosen. It does not read monitoring data, group requests by window, or estimate burn. The budget is displayed without rounding, and the remaining value goes negative when the target is exceeded. It does not compute contractual credits or refunds, which depend on the terms of your agreement. The concepts follow Google's SRE book chapter on service level objectives.