An endpoint fails now and then: how to prove it to the backend
One error in ten requests. The monitor flips between green and red, notifications pile up, and the backend says “everything works on our side”. Monitoring in Microkoi Bench marks such an endpoint as unstable, counts the failure rate and shows which server most of the failures come from.
Why “now and then” is worse than “down”
Everyone notices a dead endpoint within five minutes. An endpoint that returns 502 on every tenth request lives for weeks: the retry works, the tester shrugs, the user sees an empty cart screen once a day and leaves.
A bug like that is hard to prove. A screenshot of one failure says nothing, and when the backend checks, everything is green. You need numbers for a period: how many checks, how many failures, when and from where.
Put the endpoint into monitoring
In Requests, hover over a request in the tree and click the monitoring icon. Or add a branch to monitoring from the Traffic endpoint tree. Checks run on a schedule, with an interval of 20 seconds or more, while Bench and this workspace are open.
The “Unstable” status
If in the last hour at least 5% of checks failed and the failures were mixed with successful responses, the monitor doesn’t go down — it becomes unstable. Its status dot is split in half: the left half yellow, the right half red. That way it can’t be confused with “Degraded” or “Down”.
- The dot’s tooltip counts failures since instability began, for example “Unstable · 4 of 60 failed”.
- You get one “is unstable” notification instead of a series of “is down” and “is back up”.
- No incident is opened, and the status clears after an hour without failures.
How many failures, and from which server
The card of an unstable monitor puts it in one line: “Failures since 13:18: 7 of 42 (16.7%), at most 2 in a row. Most failures are from 10.0.0.7: 6 of 21.” If nearly all failures come from one server behind the load balancer, it’s no longer “it sometimes doesn’t load” — it’s the address of a specific machine.
“Analytics” for a period
The “Analytics” block in the card counts the selected period: “24 hours”, “Week”, “Month”, “All time” or “Custom”.
| Tile | What it tells the backend |
|---|---|
| “Uptime” | Share of checks without a failure: at 98.4%, roughly one check in sixty fails |
| “p95 response time” | 95% of responses are faster than this; p50 next to it |
| “Incidents” | How many times the endpoint went down and how long the downtime lasted |
| “Instability” | How many times the monitor became unstable and for how long |
Below are failures “By cause” (timeout, 5xx code, DNS, connection refused) and “By server”. A server share above 10% is highlighted red. A click on a row opens the list of those failures, a click on a failure opens the server response itself: the 502 page body, headers, timing.
Better or worse
After a fix is deployed, the backend will ask whether it helped. Last week sits next to this one: uptime in percentage points, p95, failures, incidents, instability. A change for the better is green, for the worse — red. To get there, choose “Previous period” in the “Compare with…” menu.
A report for the backend team
- Open the “⋯” menu in the monitor or folder row and choose “Export report…”.
- Choose a “Period”, for example “Week”.
- Click “Save report…”.
Bench saves two files. The HTML opens in any browser: a one-sentence verdict, an hourly strip, incidents, failures by cause and server, instability windows. The CSV next to it has every check in the period, so any number in the report can be recalculated.
The SHA-256 checksum in the report shows the CSV wasn’t changed after the report was built. That settles the “is this really our data” question. Secret values are hidden in both the report and the CSV.
If it’s not one request that fails but a whole user path — sign-in, cart, checkout — put a chain into monitoring. How to read its report is covered in “A chain report for the backend team: where the flow breaks”.
What you get
Instead of “it sometimes doesn’t load for me” — “16.7% failures in an hour, 6 of 7 from 10.0.0.7, here’s the CSV”. Instability stops being an opinion and becomes a ticket with a server address.
Put a suspicious endpoint into monitoring in beta 0.9.6 and write to beta@microkoi.com about what the analytics showed after a week. We read every email.