Monitoring: Why Smart Alerts Beat Smart Algorithms

Monitoring: Why Smart Alerts Beat Smart Algorithms

Everyone's building AI-powered anomaly detection these days. Machine learning models trained on your metrics, neural networks that understand your seasonal patterns, algorithms that promise to catch the unknown unknowns. It's impressive tech, and the demos look fantastic.

Start with failure modes you can identify and test: storage exhaustion, memory pressure, CPU contention and unavailable dependencies. There is no evidence here that these account for a fixed percentage of all outages. Statistical detection can complement these checks when it answers a specific operational question.

The AI Anomaly Detection Problem

An anomaly detector needs a representative baseline, a useful objective and tuning for expected workload cycles. A predictable backup spike is not automatically an anomaly, and an unusual measurement is not automatically an incident.

Review notifications against actual incidents. Track which alerts required action, which duplicated another signal and which missed user-visible failures. Apply the same review to fixed thresholds and statistical detectors.

A traffic increase may be healthy growth or a harmful overload. Check error rate, response time and saturation before deciding what action to take.

Five Failure Patterns to Cover First

The following are practical starting points, not a complete taxonomy of outages.

1. Disk Space Death Spiral

Logs, databases and temporary files consume storage. Track available bytes and inodes, growth rate and application write errors. Performance does not universally degrade at 85% or fail at 95%; filesystem, workload and reserved capacity matter.

Set warning and urgent thresholds from required free capacity and response time. For illustration, 20 GiB free at a sustained 2 GiB/hour growth leaves about ten hours; a forecast is only useful while that growth assumption holds.

2. Memory Leak Massacre

Persistent growth under comparable load can indicate retained allocations, but cache growth and workload changes can look similar. Compare available memory, process or container usage, swap activity and OOM events before concluding there is a leak.

A trend alert can flag the change for investigation. It cannot identify the retaining allocation or prove that it outperforms a different detector without a measured comparison.

3. The Load Average Explosion

Your server gets hit with more work than it can handle. Maybe traffic spiked, maybe a batch job went rogue, maybe someone decided to run a backup during peak hours. Load average shoots up, response times crater.

Another threshold problem. You know your server's limits. Alert when you're approaching them.

4. The Network Partition

Connectivity issues between services cause cascading failures. Database can't reach the cache, API can't reach the database, users can't reach anything. The monitoring usually shows everything as "up" right until it isn't.

A network partition can be abrupt. Check the dependency from the network path used by the application, with bounded timeouts and application-level success criteria. Rising latency is one possible symptom, not a necessary precursor.

5. The Dependency Domino Effect

A shared service fails and takes everything else with it. The database locks up, the message queue fills up, the CDN goes down. Your application might be perfectly healthy, but it can't function without its dependencies.

Service dependency mapping helps here, but honestly, most of the time you can predict the critical paths. Monitor the things that everything else depends on more aggressively.

Smart Alerting Without the ML Complexity

Instead of throwing machine learning at the problem, build alerting rules that adapt to your actual environment. This isn't about being anti-AI, it's about being practical.

Context-Aware Thresholds

Your CPU usage at 2 AM should trigger different alerts than the same usage at 2 PM. Don't train a model on this, just set different thresholds for different time windows. Most monitoring systems can handle time-based rules without breaking a sweat.

Progressive Alert Escalation

Start with loose thresholds for early warnings, tighten them for immediate action. Disk space at 70%? Send an email. At 85%? Page someone. At 95%? Wake up the whole team. Simple, predictable, effective.

Composite Conditions

Alert when multiple related metrics move together. High CPU and high load average and increasing response times? That's a pattern worth investigating. High CPU alone? Maybe just a backup running.

Most monitoring platforms support compound conditions. Use them.

Silence the Expected

This is where a little intelligence goes a long way. If you know the backup runs at midnight and CPU always spikes, suppress those alerts during that window. If you know traffic drops on weekends, adjust your thresholds accordingly.

You're not building AI, you're encoding operational knowledge.

The Real Anomaly Detection

Subtle faults exist, and simple resource checks can miss them. Cover user-visible success and latency as well as infrastructure pressure. Use additional detection only when its output has an owner and a useful response.

Infrastructure symptoms help explain an incident, while service checks help establish impact. Neither set of signals replaces the other.

What you need is reliable alerting on the fundamentals, delivered at the right time to the right people with enough context to take action. That's harder than it sounds, but it doesn't require a data science team.

Getting Started

Pick your top five services. The ones that hurt when they're down. Figure out their failure modes. Disk space, memory, CPU, dependencies, whatever kills them most often. Set up simple, reliable alerts for those patterns.

Test them. Make sure they fire when they should and stay quiet when they shouldn't. Tune the thresholds based on real incidents, not theoretical models.

Once you've got solid coverage of the obvious stuff, then maybe consider more sophisticated approaches for the edge cases. But don't skip the fundamentals in pursuit of algorithmic elegance.

The goal isn't to build the smartest monitoring system. It's to build the most reliable one. Sometimes that means choosing simple rules over sophisticated algorithms, and that's perfectly fine.

Fivenines workflows provide rechecks, delays and notification gates. Configure and test those rules against the actual trigger; they do not make every anomaly actionable. Google’s monitoring guidance is a useful reference for separating symptoms from causes.

A repeatable alert-quality check

  1. Define a symptom, owner, response and recovery condition for each alert.
  2. Trigger it on a staging service and time the notification.
  3. Repeat during an allowed maintenance window and check the intended suppression.
  4. Stop telemetry separately to verify missing-data handling.
  5. Review false positives and missed incidents after a representative workload cycle.

Evaluate these alerting choices against your own service objectives when configuring Fivenines.