SLO SLI Error Budget: SRE Reliability Explained
June 26, 2026
SLO SLI error budgets are core components of Site Reliability Engineering (SRE) that quantify and manage service reliability. An SLI (Service Level Indicator) is a direct quantitative measure of a service's performance, such as the ratio of successful requests to total requests. An SLO (Service Level Objective) is the target value or desired level of reliability for an SLI over a specific period, and the error budget represents the permissible amount of deviation from that SLO.
Defining SLI, SLO, and Error Budgets
A Service Level Indicator (SLI) is a quantitative measurement of a service aspect, structured as a ratio of "good" events to total valid events. For instance, an availability SLI could be the number of successful requests divided by the total valid requests. Similarly, a latency SLI might measure the number of requests completed faster than a defined threshold against all valid requests. SLIs typically range from 0% (nothing works) to 100% (nothing is broken), providing an intuitive scale for reliability. These measurements can be sourced from various data points, including metrics in Datadog, spans in Honeycomb, or logs in Elastic.
A Service Level Objective (SLO) is the target value for an SLI over a specified period, representing a precise statement of desired reliability. An example SLO could be: "99.9% of homepage requests over a rolling 28-day window will be successful." This defines the goal a team commits to achieving for a particular service.
The error budget is the permissible margin of error or amount of unreliability allowed before violating an SLO. It is calculated as 100% minus the SLO percentage. For an SLO of 99.9% success ratio, the error budget is 0.1%. If a service receives 3 million requests over a four-week period, a 0.1% error budget permits 3,000 errors. Consuming 1,500 errors from a single outage would deplete 50% of this budget. Error budgets provide a mechanism to track how many "bad" SLI measurements can occur before the service fails to meet its objective, informing decisions on incident response and feature deployment.
The Role of SLIs in Measuring Reliability
Service Level Indicators (SLIs) are quantitative metrics that directly measure aspects of service performance. They are typically formulated as a ratio of "good" events to total valid events, providing a scale from 0% (non-functional) to 100% (fully functional). This consistent structure simplifies tooling for alerting logic, SLO analysis, and error budget calculations.
Common examples of SLIs include:
- Availability SLI: (Number of successful requests) / (Total valid requests). For instance, the ratio of successful HTTP requests to total HTTP requests.
- Latency SLI: (Number of requests faster than a specified threshold) / (Total valid requests). An example is the number of gRPC calls completing in under 100 ms compared to all gRPC requests.
SLIs can be derived from various data sources, such as metrics in Datadog, spans in Honeycomb, or logs in Elastic. Not all internal metrics or implementation details are relevant for SLIs; the focus is on outcomes that matter to users. For example, a user-centric SLI for a search feature might measure the ratio of search results that utilized the entire data corpus versus those that degraded gracefully. Another user-centric SLI could be the number of "good user minutes" based on an extended set of criteria, divided by total user minutes. When defining SLIs, it is useful to separate the SLI specification (what matters to users) from its implementation (how it is measured).
Calculating and Applying Error Budgets
An error budget quantifies the permissible amount of unreliability for a service before it violates its Service Level Objective (SLO). The calculation is straightforward: 100% - SLO%. For instance, a service with a 99.99% availability SLO over a 30-day rolling period has an error budget of 0.01%. This translates to approximately 4 minutes of allowed downtime within that 30-day window. If the SLO is 99.9% for a service processing 3 million requests over four weeks, the error budget is 0.1%, allowing for 3,000 errors. An outage causing 1,500 errors would consume 50% of this budget.
Error budgets are consumed by any degradation that impacts the Service Level Indicator (SLI) and pushes it below the SLO target. This includes service downtime, performance degradation (e.g., increased latency beyond a defined threshold), or an elevated error rate. For duration-based SLOs, overlapping alerts for the same SLI are merged into a single event, starting with the first alert and ending with the last, to accurately reflect actual downtime and prevent multiple deductions from the error budget. Error budgets provide a clear signal for Site Reliability Engineering (SRE) teams, influencing decisions such as deferring risky deployments when the budget is low or accelerating new feature launches when the budget is healthy. A service aiming for a 100% SLO effectively has no error budget, highlighting the impracticality of such a target.
Error Budgets for Decision Making and Innovation
Error budgets are a critical tool for Site Reliability Engineering (SRE) teams, providing a data-driven mechanism to balance innovation with reliability. They serve as a conceptual model for understanding acceptable risk within services. While SRE teams track error budgets, the decisions on how to spend them typically involve broader stakeholders.
For instance, if a service has a 99.99% availability SLO over a 30-day rolling period, its error budget is 0.01%, equating to approximately 4 minutes of allowed downtime. When this budget is close to depletion, it signals that risky actions, such as deploying new updates or features, should be deferred to protect service reliability and customer experience. Conversely, if the error budget is healthy and near the end of a compliance period, teams can accelerate the launch of new features or undertake maintenance tasks with a lower risk of violating the SLO. This dynamic feedback loop, driven by the error budget, allows for informed decision-making regarding feature releases, maintenance windows, and incident response, ensuring a strategic approach to performance and uptime.
Differentiating SLOs from SLAs
Service Level Objectives (SLOs) and Service Level Agreements (SLAs) both relate to service performance, but they serve distinct purposes and have different audiences. SLOs are internal targets established by Site Reliability Engineering (SRE) teams to define the desired level of reliability for a service. For instance, an SLO might state that "99.9% of homepage requests over a rolling 28-day window will be successful". This internal goal guides development and operations, ensuring that the service meets a predefined standard of performance and uptime.
In contrast, an SLA is a formal, external contract between a service provider and a customer. It outlines the agreed-upon service levels, including metrics like availability and uptime, and specifies the penalties or remedies if those levels are not met. While an SLO might aim for 99.99% availability, an SLA could promise 99.9% uptime, with financial repercussions for the provider if availability drops below this threshold. Essentially, SLOs are internal commitments to reliability that help teams manage performance and customer experience, whereas SLAs are external, legally binding commitments that define the terms of service for end-users. An SLO not being met can trigger internal incident response, but an SLA violation can lead to direct financial penalties or service credits for customers.
Frequently Asked Questions
What is the difference between an SLI, SLO, and SLA?
SLIs (Service Level Indicators) are specific metrics measuring service performance, SLOs (Service Level Objectives) are internal targets for those metrics, and SLAs (Service Level Agreements) are external, legally binding contracts with customers based on service levels.
How do you calculate an error budget?
An error budget is calculated as the inverse of your SLO target; for example, a 99.99% availability SLO results in a 0.01% error budget, representing the allowable downtime or performance degradation.
Why are error budgets important in SRE?
Error budgets are crucial for SRE as they provide a data-driven mechanism to balance innovation with reliability, guiding decisions on when to release new features or defer risky deployments.
What happens when an error budget is depleted?
When an error budget is depleted, it signals that risky actions like new deployments should be deferred to protect service reliability and customer experience, and teams should focus on stability.
Can you have a 100% SLO?
While theoretically possible, aiming for a 100% SLO is impractical as it leaves no room for any errors or downtime, effectively resulting in no error budget.
What are good examples of SLIs?
Good examples of SLIs include service availability (e.g., successful request rate), latency (e.g., time to first byte), and error rate (e.g., HTTP 5xx errors).
Conclusion
Understanding the interplay between SLIs, SLOs, and error budgets is fundamental for any organization committed to delivering reliable and high-performing services. These concepts provide a robust framework for measuring, managing, and continuously improving service quality, ultimately leading to enhanced customer satisfaction and operational efficiency. By strategically utilizing these tools, teams can strike a crucial balance between innovation and stability.
Sources & References
- Understanding SLAs, SLOs, SLIs and Error Budgets - Stytch
- A Complete Guide to Error Budgets: Setting up SLOs, SLIs, and SLAs to Maintain Reliability
- Chapter 2 - Implementing SLOs - Google SRE
- What is an error budget?
- SRE: SLIs, SLOs, Error Budgets & Their Application | by Shreyasingh
- Navigating Service Reliability: Insights into SLOs, SLIs, and Error Budgets
- Designing Error Budget Policies For SLOs At Scale | Netdata
- The Ultimate Guide to SLI, SLO, SLA & Error Budgets - Medium
- Designing SLOs | Cloud Service Mesh | Google Cloud
- What Are SRE Fundamentals: SLA vs SLO vs SLI? - Palo Alto Networks
Want to actually learn Engineering?
Curo turns topics like this into a personalized, guided learning board - built around what you already know. Free to start.