Should you report uptime from synthetic checks or from real user traffic? Let's argue about it
Uptime monitoring from outside your own infrastructure that alerts you the minute your site goes down — upordown.online There are two honest ways to say whether a site was up. One is to ask it, on a schedule, from places you control: a synthetic check. The other is to look at what happened to real browsers and apps: success rate, errors, time to first byte, failed checkouts. They disagree more…
There are two primary methods for assessing website uptime: synthetic checks and real user traffic data. Synthetic checks involve using controlled, automated tests from locations you manage, such as a recurring health check request or checkout simulation. This approach provides a repeatable experiment with consistent parameters, making it a fair representation for SLA compliance and alert initiation.
Conversely, real user traffic data captures actual browsing behavior and application interactions, including success rates, error rates, time to first byte, and checkout failures. While these metrics often disagree, determining which number to display on the status page and which alert to trigger can be contentious.
Synthetic checks excel at detecting global issues that prevent access to your site, such as DNS failures, IPv6-only problems, or region-specific CDN outages. They generate immediate alerts, ensuring your team is promptly notified of critical outages. However, they may not accurately reflect user experiences for low-frequency or specialized use cases, like a monthly billing portal.
Conversely, real user traffic data provides a more holistic view of user interactions, capturing issues specific to certain user groups, such as checkout failures for a particular card brand or 200 HTTP responses with JavaScript errors that impede user actions. Yet, relying solely on user data can be misleading, as it may remain silent during total outages, resulting in a falsely reassuring uptime percentage.
The author advocates for using synthetic checks to trigger alerts, especially for critical paths, while incorporating real user data to identify incidents that synthetic checks would miss. Synthetic checks provide reliable, consistent indications of site availability, while real user data offers the insights needed to understand the impact of those outages on users.
When synthetic and user-based metrics diverge, it's crucial to investigate the discrepancy rather than averaging the two numbers. A decline in key business metrics, like checkout success or API response times, should also trigger notifications after establishing baselines and filtering out known noise sources.
Ultimately, the author emphasizes the importance of maintaining separate synthetic and user-based metrics without combining them into a single "combined uptime" figure. Combining the numbers can obscure the differences between them, leading to a misleading representation of the site's overall health. The author suggests keeping synthetic checks as the primary driver for status page status (green, yellow, or red) alongside an honest disclaimer when user-specific issues are affecting availability.
It's essential to experiment with the configuration and thresholds of both synthetic and user-based monitoring systems to ensure accurate and actionable uptime reporting.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to