Library

Volume 1 · CI/CD, DevOps & Observability

Notebook
Sign in

Section 35

Alerting Strategies (hierarchy, routing, escalation)

322 words · about 1 min

35.1 Alert Design Principles

  1. Alert on symptoms, not causes (“checkout is slow” not “CPU is high”).
  2. Actionable — every alert has a clear response action and links to a runbook.
  3. Prioritized — P1 (page immediately) / P2 (page during business hours) / P3 (ticket).
  4. Low noise — target <5% false-positive rate.

35.2 Alert Hierarchy

Business Impact Alerts (SLO-based)
  └── "Checkout success rate dropped below 99.9%"
      └── Service Health Alerts
          └── "Payment service error rate > 5%"
              └── Infrastructure Alerts
                  └── "Database connection pool saturated"
                      └── Resource Alerts
                          └── "Pod memory > 90%"

Design dashboards top-down (business impact first) so on-call engineers triage from user impact down to root cause, not the reverse.

35.3 Alert Routing & Escalation

alert_routing:
  - match:
      severity: P1
      service_tier: 1
    receiver: pagerduty_oncall
    repeat_interval: 5m
    escalation:
      - after: 15m
        to: engineering_manager
      - after: 30m
        to: vp_engineering

  - match:
      severity: P2
    receiver: slack_channel_alerts
    repeat_interval: 30m

  - match:
      severity: P3
    receiver: jira_ticket
    repeat_interval: 4h

Good vs. bad alerts:

# Good — actionable, sustained conditions
- name: High Error Rate
  condition: error_rate > 1% for 5 minutes
  severity: P1
  action: Page on-call engineer

- name: Latency Degradation
  condition: p99_latency > 2000ms for 10 minutes
  severity: P2
  action: Slack notification to team

# Bad
# - CPU > 70% (not actionable, may be normal)
# - Any single 500 error (too noisy)
# - "Something might be wrong" (vague)

35.4 Q&A

Q: How do you reduce alert fatigue on a mature platform? Move from static thresholds to SLO burn-rate alerts (fewer, higher-signal pages); require every alert to have an owning team and runbook or it gets deleted; correlate/deduplicate at the alerting layer (Alertmanager grouping, PagerDuty event intelligence); regularly audit pages that were acknowledged but required no action and either fix the underlying noise or downgrade severity.