Home · Designing an AI Gateway for Enterprises · Part 12 of 17
Health isn't a ping: watching a request across the whole path
Every part of the system has a dashboard. None of them shows the journey.
A request crosses several hops on its way to an answer. The team behind each hop looks at its own dashboard, sees green, and the user still gets an error. Everyone is right and nobody is helped.
I wanted to see the journey: follow real requests end to end, see where they went, and see how each part of the system reacted. That view lives in the portal, but it's about the whole product: the door, the relay, the models, and everything in between.
Four principles
- Health is a reaction, not a heartbeat. A part that answers a ping can still fail real requests. Judge it by what it does with real traffic, not by whether it says hello.
- Show the path, not a list. The order of the hops is information. A list of green tiles hides the one fact that matters: where, along the way, a request stopped being happy.
- Roll up to a verdict a human can act on. Healthy, degraded or down, with the reasons beside it, not hidden behind it. A verdict without reasons is an opinion.
- Admit when you can't tell. With too little traffic, the honest verdict is "not enough to judge", not a reassuring green.
Quiet isn't healthy
A system with no traffic can't be judged. A green tile on a quiet night is a guess wearing a green shirt. So the view has an explicit state for "nothing to judge from", and it uses it. That one design choice has saved more arguments than any threshold I've tuned.
Why it belongs in the product
Most platforms treat health as something you buy separately, and it shows. The health view works because it shares the product's idea of a request: the same identity, the same records, the same names for models and hops. When a person says "my requests are slow", the view can start from their requests, not from a generic graph of the platform.
It also closes a loop. The gateway generates the evidence, the portal turns it into a verdict, and the verdict tells an operator where to look. That's one product doing one job from both ends.
What the view is for
It serves two people at once: an operator, who needs to know where to look, and a manager, who needs to know whether to worry. The first wants detail, the second wants a verdict. Giving both the same underlying evidence, at different levels of zoom, means they stop arguing about whose dashboard is right.
Verdicts must also move for the right reasons. A system that flaps between healthy and degraded teaches people to ignore it; one that never moves teaches them it's decorative. Tuning that balance is slow, unglamorous work, and it's most of the value.
I won't describe the signals or the thresholds. They're the part that took the longest to get right, and the part that depends most on the specifics of the product.
Where the time goes
"Slow" is only a complaint until you can say where. The view splits a request's time between the front door, the middle of the product and the model itself, so "the gateway is slow" becomes "the model took most of it", or the reverse. Either way it's evidence, not opinion.
Not everything counts against the platform, either. A malformed request, or a policy correctly refusing one, is the system working. Those stay visible but aren't held against availability.
What it changed
It changed the first question we ask when something is wrong. It used to be "which dashboard do I open?". Now it's "where did this request stop being happy?" That's a much shorter route to a fix, and it makes the incident conversation kinder, because the evidence points at a hop and not at a person.
A system is healthy when real requests succeed, not when its parts answer pings.
Want to discuss this? Connect with me on LinkedIn.
Next: "deployment succeeded" is not "it works".