Building a Service Reliability Platform from Scratch
Advanced · 60 minutes · 100 points
In this advanced hands-on lab, you will build a foundational Service Reliability Platform entirely from scratch inside a Linux environment. You will implement core SRE components including a health-check daemon, an SLI/SLO tracking system, an error budget calculator, and an alerting rule engine — all using shell scripting and standard Linux tools. By the end, you will have a working mini-SRE platform that monitors a simulated service, tracks availability SLOs, calculates error budgets, and fires alerts when thresholds are breached.
What you’ll learn
- Build a health-check daemon that simulates service monitoring and logs availability data to structured files
- Implement an SLI/SLO tracking system that computes real-time availability percentages from collected metrics
- Create an error budget calculator and alerting engine that fires threshold-based alerts when SLOs are at risk
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 3 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- Basic understanding of SRE concepts (SLIs, SLOs, error budgets)
- Comfort with bash scripting and Linux command line
Topics: sre, reliability, slo, sli, error-budget, alerting, bash, monitoring, platform-engineering
Create a free account to start this lab.