What Is SRE?
Site Reliability Engineering treats operations as a software problem. Engineers set measurable reliability goals, automate repetitive work and learn from failures.
SLI, SLO and SLA
| Term | Meaning | Example |
|---|---|---|
| SLI (indicator) | A measurement of service quality | Percent of requests that succeed in under 300 ms |
| SLO (objective) | A target for the SLI over time | 99.9 percent over 30 days |
| SLA (agreement) | A contract with customers, with penalties | Credits if availability is below 99.5 percent |
- SLOs should be stricter than SLAs, so you notice problems before breaking the contract
- Pick SLIs users care about: availability, latency, correctness, freshness, throughput
- 100 percent is the wrong target. It is too costly and blocks change
Error Budget
| Availability | Downtime per 30 days (about) |
|---|---|
| 99% | 7 hours 12 minutes |
| 99.9% | 43 minutes |
| 99.95% | 21 minutes |
| 99.99% | 4 minutes 19 seconds |
| 99.999% | 26 seconds |
Each extra nine costs much more. Chain of services multiplies: if A is 99.9 and B is 99.9 in series, the total is about 99.8.
Setting SLOs in Cloud Monitoring
- Cloud Monitoring has a Service Monitoring feature: define a service, an SLI (request-based or windows-based) and an SLO
- It shows the error budget and lets you alert on burn rate (how fast you spend the budget), for example page when the 1-hour burn rate is 14 times normal
Finding Problems
| Tool | Use |
|---|---|
| Cloud Trace | Follow one request through many services and see where latency comes from (OpenTelemetry supported) |
| Error Reporting | Groups and counts application errors and stack traces, with notifications for new errors |
| Cloud Profiler | Continuous CPU and memory profiling in production to find slow code |
| Logs Explorer and Log Analytics | Investigate events |
| Network Intelligence Center | Network faults |
| Gemini Cloud Assist | AI help to investigate and explain issues |
Incident Response
- Detect: alert fires
- Triage: how many users, how bad? Assign a severity
- Assign roles: incident commander, communications lead, operations lead
- Mitigate first (roll back, shift traffic, add capacity). Root cause later
- Communicate status regularly
- Resolve, then write a blameless postmortem with timeline, causes, what went well, action items with owners
- Blameless: focus on systems and process, not on a person
- Track MTTD (time to detect) and MTTR (time to recover)
Reliable Releases and Testing
- Canary and blue/green releases with quick rollback
- Load testing before big events and capacity planning with growth forecasts
- Chaos engineering: inject failures on purpose to prove the system survives
- Penetration testing and game days
- Reduce toil: automate manual repetitive tasks
Practice
- Define an SLI and SLO for a login API
- Calculate the error budget for 99.95 percent over 30 days
- Write a short blameless postmortem for an imaginary outage
- Explain what you would do first when error rate jumps after a release
Conclusion
SRE sets SLIs and SLOs, uses error budgets to balance speed and reliability, finds problems with Trace, Error Reporting and Profiler, and responds to incidents with clear roles and blameless postmortems.

