Synthetic Monitoring: Defining SLOs From the User Perspective
Nobody cares if a database transaction failed. They care if they could do the thing they came to do.
With the new Google SRE workbook doing the rounds, I wanted to share how defining SLIs, SLOs and SLAs actually plays out at businesses. Not the textbook version. The real one.
I’ve been defining SLOs and SLIs, and helping businesses define them, for half a decade now. It always comes back to the same place.
What are your users seeing?
That’s the question you need to answer first. And the best tool I’ve found for answering it honestly is synthetic monitoring.
Don’t start from the bottom
If you’ve not got any SLIs, SLOs or SLAs set up right now, don’t expect to do it overnight. Jumping in head first is going to hurt you in the long run.
The most common mistake I see is engineers starting from the bottom. You’re the expert in the system. You know every transaction that happens at any given point. So you start there: the database, the cache, the queue, the server.
This dilutes the trust of the business. They don’t know which database you hit. They don’t know what’s actually happening behind the scenes. And frankly, they shouldn’t need to.
Starting from the bottom gets you a convoluted whataboutery. You point at a single component and call it a success, without taking into account whether the transaction the user actually tried to do went through or not.
Map the paths that matter
Instead, sit down with your team and with some of your users and map out how people actually access your product.
Don’t worry about the edge cases. Don’t worry about the whataboutery. Figure out where your value lies and which paths you need to be tracking.
Get in the habit of thinking like your stakeholders will. There’s no use tracking a database transaction that happens irregularly if your fundamental service is down. Especially when you’re trying to aggregate different SLIs together towards a single SLO.
Once you’ve got those common and ideal user flows written down, back them up with data. Tracing will tell you which paths are hot. Aggregated metrics will tell you how often they’re hit. This has never been easier — tools like Claude let you pull this information together and display it in minutes rather than days.
These common paths are your critical user journeys. They’re also the lowest hanging fruit for defining what your first SLI and SLO should look like.
Why synthetic monitoring
A definition for synthetic monitor is different - some people call it blackbox monitoring. The difference is you use data (e.g. metrics) to prove the definition of a customer flow and then you use a synthetic monitoring tool to use traces to prove what that flow looks like.
Real user traffic is noisy. It’s bursty, it’s uneven, and at 3am on a Sunday there might not be any. Component-level metrics are worse — they tell you about the parts, not the whole. But the flow and path that users typically use - especially when they are familiar to the tool - becomes sticky over time.
Synthetic monitoring inverts what we do as system experts. You take the paths you’ve just mapped and replay them on a schedule, exactly as a user would. Log in. Search the catalogue. Load the page. Check out.
The result is a pass or a fail for the journey, not the component. That’s the thing your SLI should be measuring.
Take an example. You’ve got a web server that serves a piece of information from a database, and also fetches an image back from a different service. The database side works. The image doesn’t come back.
The bottom-up view says two out of three services were healthy. Great success.
The user view says the page was broken.
A synthetic check doesn’t care that the database was fine. It loaded the page, the image was missing, the check failed. That’s the correct answer, and it’s the one that counts.
Keep your first few SLI boring
Your first SLI should be super boring and simple. Always start here as a team.
Say you’ve written an internal web service that returns a service catalogue for your business. You essentially want to know two things: how many requests succeeded, and how many failed. Whether that’s 2XX versus 5XX, or something more specific to you, is up to you.
Run a synthetic check against that path and you get a simple ratio:
SLI = successful checks / total checks
That gives you a percentage. Set a target against it and that’s your SLO. Something like 99.5% of checks over a rolling 28 days.
That’s it. That’s the start.
After that you can look at the fancy stuff. Latency thresholds on the same checks. Saturation. Multi-step journeys with assertions on every step. But starting there makes absolutely no sense.
What about the stuff further down?
This gets trickier when you’re looking at systems further down the stack — databases, the servers themselves.
But ultimately, if a server is down and causing you issues, you’ll see it in the user journey. If you don’t see it in the user journey, it might not be the issue you think it is.
Nobody ultimately cares if a database transaction failed. You might, because you’re on the database team. You might care if a server fails because you’re on the server team. Keep monitoring those things — they’re great for debugging. But they’re signals for you, not SLIs for the business.
If it has no baseline impact on what your user is doing, there might be more important things you could be doing right now. Security updates. Upgrading your database to improve your replication factor. Things that actually move the needle.
Delight the business with honest numbers
Management are increasingly interested in putting their finger on the pulse of components across the business. They deal in large numbers and aggregations. They want quick snippets.
“Our checkout journey succeeded 99.2% of the time this month” is exactly that kind of big bang data you want. It’s easy to understand, and it’s grounded in what a customer would have experienced.
So come prepared with it. But give them easy, realistic numbers that are true to you.
Now imagine you do that SLO and it becomes 95% - are you still happy? Or do you likely need to spend some time on checkout to increase that flow?
If you do this and find your SLO is lower than you expected, or lower than you want it to be — that’s fine. That’s absolutely how this should go. Take it in a positive light. You now have a way to measure it. Sit down with your team and put together a plan to improve it.
A low number you trust is worth infinitely more than a high number nobody believes - so measuring from the user journey onwards is powerful.
Keep it simple
As engineers we end up focusing on things that may or may not matter, and it hurts us in the long run.
So focus on the low-hanging fruit:
- Map the journeys your users actually take. This is so useful for the team and onboarding!
- Back them up with data from traces and metrics.
- Replay the critical ones with synthetic checks.
- Measure success over total. Set a target. Report it.
- Then - and only then - get fancy.
It always comes back to asking the team: what are you actually trying to track, and how are you going to distil it down?
I hope this helps someone. Don’t overcomplicate it.
Keep it simple, stupid.