We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Actionable Alerts

The previous lesson used a noisy 401 alert to prove the alerting pipeline works.

Real alerts should be actionable. If a rule fires, an operator should know there's likely a system issue worth investigating.

For example, in most web apps a spike in 5xx responses (there is likely an issue in our service) is much scarier than a spike in 4xx responses (usually an issue in the client's request).

Avoid Alert Fatigue

An alert that fires constantly gets ignored. Avoiding "alert fatigue" by choosing signals that reflect real incidents is a core part of a good alerting system. A practical first cut is:

  • alert on 500 spikes
  • do not alert on normal user mistakes (like bad credentials)

Assignment

  1. sum(rate(http_requests_total{status="500"}[5m])) * 60
    

If Grafana hasn't updated yet after the 500 requests, wait about 15 seconds and click "Run queries" again.

Run and submit the CLI tests from the root of the Linko repo.