Understanding and managing false positives
Effective monitoring stands and falls with its accuracy. You want to be alerted-and, if it comes to it, woken up in the middle of the night-only when there’s a real issue. But the truth is, false positives can happen for various reasons. A check might be affected by harmless glitch in the network connection between Checkly and your check target, causing your site to be flagged as slow or unreachable, when, in fact, it is running perfectly fine.
The public internet, with its millions of networks and nodes, can be unpredictable, making occasional hiccups unavoidable. Thankfully, many of these are just isolated incidents that resolve on their own, and there are ways to protect your monitoring setup from them.
In this section, we’ll dive into why these issues happen and share strategies on minimizing the impact of false positives, allowing you to more clearly distinguish between a real problem and a simple network blip.
Common Causes of Performance Variations
When setting up your monitoring strategy, it’s important to consider a few common factors that can affect networking performance:
- Network Latency: The time it takes for data to travel between points. This can vary due to distance, routing, or congestion.
- Packet Loss: Sometimes data packets don’t reach their destination and need to be resent, leading to delays.
- Server Response Time: Servers might occasionally take longer to respond, or load balancers and backend services could be at capacity.
- Infrastructure Issues: Temporary issues like routing errors, server load spikes, or scheduled maintenance can also impact performance.
While these factors are generally well-managed, they can’t be completely avoided. However, you can take steps to make your monitoring setup more resilient.
What Is an Accepted Failure Rate?
At Checkly, our team works with accepted failure rates to ensure we’re operating within a normal, expected range of performance. An accepted failure rate acts as a threshold, allowing for a small percentage of checks to fail due to temporary issues like server fluctuations or network anomalies. Our goal is to keep this rate below 0.002%, and we continually optimize our infrastructure to minimize disruptions.
Best Practices to Minimize False Positives
False positives can lead to unnecessary alerts, but you can keep them to a minimum by following these best practices:
Use Retries
Retries are your first line of defense against transient issues. By setting up retries, your checks can automatically try again if the first attempt fails because of a temporary glitch. This reduces the impact of brief disruptions and helps prevent false positives.
Learn more about implementing retries: Retries at Checkly.
Run Checks from Multiple Locations
A temporary issue from one location might cause a check to fail, but that doesn’t necessarily mean your application is down. With 22 available regions, Checkly lets you run checks from multiple locations simultaneously. This helps you spot the difference between a localized network problem and a real issue with your app.
Learn more about configuring up multi-location checks: Global Location and Scheduling Strategies.
Fine-Tune Your Alerting
Once you’ve implemented retries and multi-location checks, you can adjust your alert settings to avoid unnecessary notifications. For example, you can require failures from multiple locations or after several retries before triggering an alert. This helps you avoid alerts for short-lived, isolated failures that don’t require immediate attention.
Learn more about configuring alerting: Alert Settings at Checkly.
Need Help?
If you’re not sure what’s going on or if an issue keeps popping up without a clear reason, don’t hesitate to reach out. Our support team is here to help you troubleshoot any unusual check performance.
Last updated on September 5, 2024. You can contribute to this documentation by editing this page on Github