Designing Production Alerts: Signals and Thresholds
Choose user-focused alert signals, set workload-specific thresholds, and use SLO burn rates without treating examples as universal defaults.
Start with a signal that points to user impact and a response someone can take. This guide covers thresholds, SLO burn rates, and noise reviews; tune every example to the service's workload and SLO. For paging policy, runbooks, and incident response, see the operational companion.
Designing Production Alerts: Signals and Thresholds
An alert that says “CPU is high” may wake someone without telling them whether users are affected. A useful alert starts with a service signal, a threshold tied to its workload or SLO, and a reason to act.
This guide focuses on choosing signals and thresholds. The companion Alerting in Production: Paging, Runbooks, and On-Call covers what happens after a signal is routed to a person.
Choose a signal
Use this flow when adding an alert. A candidate that does not lead to action can still belong on a dashboard or in a ticket.
flowchart TD
A[Candidate signal] --> B{Can someone act on it?}
B -- No --> C[Dashboard or ticket]
B -- Yes --> D{Does it measure user impact?}
D -- Yes --> E[Use an SLI tied to an SLO]
D -- No --> F{Is there a known workload boundary?}
F -- Yes --> G[Set a threshold from observed capacity]
F -- No --> H[Build a baseline; use as supporting signal]
E --> I[Check impact and action before paging]
G --> I
H --> I
Values below are examples, not defaults. Set thresholds and review targets from the service’s SLO, measured baseline, workload, and the response the team can provide.
When to Use Alerting
Alerting is appropriate when:
- You have production services where downtime or degradation matters
- You have on-call engineers who can respond to issues
- Your service has known failure modes that can be detected automatically
- You have established SLOs with defined error budgets
When to skip or simplify alerting:
- Development or test environments with no user impact
- Services being retired or migrated, if there is no user-impact risk that needs a response
- Systems where you have no on-call coverage and cannot respond anyway
- Research prototypes with no uptime requirements
The Alerting Problem
flowchart TB
subgraph "Metric Collection"
APP["Application\n(Metrics, Traces)"]
HOST["Host Exporter\n(Node Exporter)"]
DB["Database\nExporter"]
end
subgraph "Alerting Engine"
PROM["Prometheus\n/ Alertmanager"]
RULES["Alert Rules\n(SLO, Burn Rate)"]
EVAL["Rule\nEvaluator"]
end
subgraph "Grouping"
ROUTE["Group related alerts"]
INHIBIT["Suppress duplicate\nsymptoms"]
end
APP --> PROM
HOST --> PROM
DB --> PROM
PROM --> EVAL
EVAL --> RULES
RULES --> ROUTE
ROUTE --> INHIBIT
An alert stream needs to catch real failures without letting routine noise bury them.
Alert rules tend to go wrong in familiar ways: they fire on a cause instead of a user symptom, keep a launch-time threshold after the workload changes, or notify people about conditions that resolve before anyone can act.
For a refresher on SLIs, SLOs, and golden signals, see Metrics, Monitoring, and Alerting.
Classify by impact
Severity labels should describe user or business impact and map to a response policy your team can support. Avoid assigning universal acknowledgement times in the signal definition. For routes, escalation windows, and who receives each alert, see the operational companion.
Alert Design Principles
Principle 1: Alert on Symptoms, Not Causes
Users do not care about CPU by itself; they care when a workflow slows down or fails. Alert on the symptom when you can:
- alert: HighCPU
expr: cpu_usage > 0.95
- alert: HighLatency
expr: histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m])) > 2
for: 5m
Principle 2: Provide Context in the Alert
Include enough context to identify the affected service, compare the signal with its normal range, and find the relevant dashboard. The values in this example are illustrative:
- alert: DatabaseConnectionsExhausted
expr: db_connections_active / db_connections_max > 0.95
for: 5m
labels:
severity: critical
annotations:
summary: "Database connections near the configured capacity threshold"
description: |
Service: {{ $labels.service }}
Current connections: {{ $value | humanize }}
Max connections: {{ $labels.max_connections }}
Instance: {{ $labels.instance }}
Runbook: https://runbooks.example.com/db-connections
Principle 3: Keep response details close
Link the alert to its dashboard and runbook, but maintain the runbook, escalation path, and paging policy as operational material. See how to keep runbooks and response routes usable.
Group related alerts
Signals from one dependency failure can fan out across many services. Group related alerts by service or dependency, and suppress downstream symptoms only when a higher-level alert explains the same impact. Review the grouping against real incidents; over-broad suppression can hide independent failures. For notification routing and escalation policy, use the operational guide.
Blackbox Monitoring
Blackbox monitoring tests your service from the outside, independent of application metrics.
modules:
http_2xx:
prober: http
http:
method: GET
fail_if_ssl: false
scrape_configs:
- job_name: "blackbox-health"
metrics_path: /health
static_configs:
- targets:
- https://api.example.com/health
See our Prometheus & Grafana guide for hands-on examples of implementing these patterns.
Alert Fatigue Prevention
Review alert history with service owners. Look for pages that did not lead to action, signals that missed user impact, and thresholds that drifted as traffic or architecture changed. A fixed review cadence can help, but choose it to fit the service’s release and incident rate. Do not treat a single signal-to-noise ratio as a universal quality score; agree on how your team classifies actionable notifications, then compare like with like over time.
SLO-based alerting
When an SLI and SLO are defined, burn rate can express how quickly the service is using its error budget. Google’s SRE Workbook gives 14.4x over a one-hour window and 6x over a six-hour window as starting points for page alerts that consume 2% and 5% of a 30-day error budget, respectively. The guidance says to adapt those values to service needs and page load; they are not universal thresholds. See Google’s Alerting on SLOs chapter, checked 2026-11-03.
For a 99.9% SLO, the following illustrates the one-hour 14.4x calculation. Substitute the actual SLI and objective, and test the rule against historical data before using it:
# Example only: 99.9% SLO and a 14.4x burn-rate starting point.
- alert: ErrorBudgetBurningFast
expr: |
(
sum(rate(http_requests_total{status=~"5.."}[1h]))
/
sum(rate(http_requests_total[1h]))
)
> (1 - 0.999) * 14.4
Common Alert Patterns
These are prompts for designing a signal, not ready-made thresholds. The values are illustrative only. Replace each one with a threshold supported by the service’s SLO, observed baseline, capacity tests, and user impact.
Resource Exhaustion
| Alert | Threshold | Action |
|---|---|---|
| Disk space | > 85% | Clean old logs, rotate data |
| Memory | > 90% | Compare working set with the limit and review the trend |
| CPU | > 95% for 10m | Scale up, check for runaway processes |
| Connections | > 80% max | Connection pool exhausted, investigate leaks |
Error Rate Spikes
| Alert | Threshold | Investigation |
|---|---|---|
| 5xx rate | > 1% for 5m | Check recent deployments, dependencies |
| 4xx rate | > 10% for 5m | Check request mix and whether the errors affect an SLO |
| Error log rate | > 100/min | Group by service or route and filter expected errors |
Latency Degradation
| Alert | Threshold | Investigation |
|---|---|---|
| P95 latency | > 2s | Check database queries, external APIs |
| P99 latency | > 5s | Find slow queries, connection pool issues |
| Latency spike | > 3x baseline | Traffic anomaly or resource exhaustion |
Paging and response
Signal design ends when the alert identifies a condition worth acting on. Decide who receives it, what the responder does, and how the team learns from incidents in Alerting in Production: Paging, Runbooks, and On-Call.
Observability Hooks
Your alerting system needs its own monitoring.
Alert on Alert System Health
| Alert | Condition | Severity |
|---|---|---|
| Alertmanager down | Cannot receive alerts | Critical |
| Alert channel failing | Notifications not delivering | Critical |
| Alert evaluation error | Rules returning errors | High |
Security Considerations
Alert payloads and destinations can expose sensitive information. Protect them:
- Alert content should not include passwords, tokens, or secrets
- Keep dashboards and runbooks behind appropriate access controls
- Alert notification channels should be encrypted
- Limit access to alert configuration and destination credentials
Alerting Trade-Offs
| Alerting Approach | When to Use | Key Risk |
|---|---|---|
| Threshold-based | Simple resource monitoring, known baselines | Needs review as traffic changes |
| SLO-based burn-rate | Services with defined SLOs, error budget tracking | Requires SLO definition first; complex to set up |
| canary analysis | Rolling deployments, infrastructure changes | Fails to catch novel failure modes |
| Blackbox/external probing | End-to-end availability, synthetic transactions | Cannot see internal state changes |
| Anomaly detection (ML) | Metrics with changing patterns or seasonality | Needs validation against the workload |
When a threshold goes stale
Imagine a service whose latency threshold was chosen during launch. After a workload shift, the alert fires during normal traffic, while a meaningful regression blends into the new baseline. The exact values are service-specific; the design failure is letting a launch-time assumption live indefinitely. Compare alerts with current user-impact data, review after material workload or architecture changes, and verify threshold changes against historical behavior.
Alerting Anti-Patterns
Alerting on infrastructure instead of user outcomes. A CPU threshold alone says little if the service is handling the load. Alert on what users experience: latency, errors, or failed workflows.
No alert review. Alerts created at launch can become misleading after traffic patterns or service behavior change. Pick a review cadence that fits the service, then revisit signals after material changes.
Every alert pages immediately. Route only signals that need timely human action to a page; choose the route in line with service impact and coverage.
Alert on symptoms without context. “High error rate” says little. Name the affected service, the user-facing symptom, and where to inspect it. Any numeric threshold in the alert should be justified by that service’s SLO or observed baseline.
Conclusion
- Alert on symptoms that affect users, not internal causes
- Give each alert a user-impact signal and an action someone can take
- Set thresholds from the service’s SLO, workload, and measured baseline
- Review noisy or stale alerts with the service owners
- Use burn-rate examples as starting points, not defaults
For a new signal:
- Does it indicate user impact or a meaningful risk to an SLO?
- Can someone act on it, or should it be a dashboard or ticket instead?
- Is the threshold supported by a measured baseline, capacity boundary, or SLO?
- Have we checked it against historical data and reviewed its grouping?
Then define the route, runbook, escalation, and incident follow-up in the operational companion.
Category
Related Posts
Metrics, Monitoring, and Alerting: From SLIs to Alerts
Learn the RED and USE methods, SLIs/SLOs/SLAs, and how to build alerting systems that catch real problems. Includes examples for web services and databases.
Alerting in Production: Paging, Runbooks, and On-Call
Set paging policy, maintain actionable runbooks, support healthy on-call rotations, and turn post-incident reviews into concrete follow-up.
The Observability Engineering Mindset: Beyond Monitoring
Move beyond monitoring with structured logs, metrics, and traces. Learn how SLOs, sampling, OpenTelemetry, and team practices improve incident debugging.