Performance Monitoring and Alerting
Measure and manage performance and capacity: baselines, percentiles, saturation, load patterns, dashboards that answer questions, and alerts based on symptoms and error budget burn that people trust.
Introduction
Two failure modes plague operations. In the first, nothing alerts until customers complain: the team is blind. In the second, alerts fire all day for things that need no action: the team is numb, and the one alert that matters is lost among forty that do not. Both come from monitoring designed around what is easy to measure instead of what people need to know and do.
This lesson covers performance and capacity monitoring, dashboards that answer real questions, and alerts that deserve a human’s attention.
Learning Objectives
- Establish performance baselines and understand percentiles.
- Monitor capacity and saturation, and recognize performance anti-patterns.
- Design dashboards for specific audiences and questions.
- Design alerts based on symptoms and error budget burn rates.
- Reduce alert noise and keep alerts actionable.
- Define and test synthetic checks and capacity limits.
- Use AI to review alerts and find performance trends.
1. Performance Basics
Performance is how fast and how much the system can do, under what load, with what resources. Four ideas are essential:
- Latency: time to complete a request or job.
- Throughput: work completed per unit of time.
- Utilization: how busy a resource is.
- Saturation: the point at which a resource has more work than it can handle, so work queues or fails.
Always use percentiles for latency. The average hides the experience of the slowest users. If 95 percent of requests take 200 ms and 5 percent take 8 seconds, the average looks fine and one user in twenty is unhappy.
| Percentile | Meaning |
|---|---|
| p50 (median) | Half of requests are faster than this |
| p95 | 95 percent of requests are faster; the slowest 5 percent are slower |
| p99 | Tail behavior; often exposes timeouts, locks, and retries |
Tail latency matters more in systems where one user action triggers many calls: the chance of hitting a slow one grows with the number of calls.
2. Establish a Baseline
You cannot judge “slow” without knowing “normal.” Create a baseline:
- Under normal load: typical latency percentiles, error rate, utilization, queue age.
- By time: daily and weekly patterns (imports may peak at the start of the working day or on Mondays).
- By version: performance before and after each release; releases are the commonest cause of change.
- From load tests in the QA strategy, so that expected limits are known before production tells you.
Record the baseline with dates, and update it as the system and its use change. A baseline that is a year old is a myth.
3. Capacity and Saturation
Ask for each resource: how close are we to the limit, and what happens at the limit?
| Resource | What to watch | What happens at the limit |
|---|---|---|
| CPU and memory | Utilization, throttling, out-of-memory kills | Slowdowns, restarts |
| Database | Connections used, query latency, lock waits, storage, I/O | Timeouts, cascading failure |
| Connection pools and thread pools | In use versus available, wait time | Requests queue up and time out |
| Queue | Depth, age of oldest message, consumers busy | Imports delayed |
| Worker concurrency | Jobs in progress versus slots | Backlog grows |
| Storage | Space used, growth rate | Writes fail |
| Network and rate limits | Provider rate limits, bandwidth | Throttled or failed calls |
| Cost and quotas | Spend rate, provider quotas | Budget exceeded, service suspended |
Monitor saturation, not just utilization: a queue whose oldest message is getting older is saturated even if CPU is low. Track growth trends and project when each limit will be reached, so that capacity work is planned and not an emergency.
Common performance problems to look for
- N+1 queries, where one request triggers many database calls.
- Missing indexes and slow queries on growing tables.
- Unbounded work: a request or job that processes an entire large dataset at once.
- Lock contention and long transactions.
- Retry storms, where failing calls are retried so aggressively that they overwhelm the dependency.
- Noisy neighbors: one tenant consuming shared capacity. Per-tenant limits and metrics are a defense.
- Memory leaks that appear as slow growth and periodic restarts.
- Cold starts and cache misses after deployments.
Run load and stress tests periodically in a production-like environment to find limits before users do, and after significant changes. Capture the results in the baseline.
4. Dashboards
A dashboard should answer a question for a specific person. A wall of graphs answers none.
| Dashboard | Audience | Content |
|---|---|---|
| Service health overview | Everyone, on-call first | SLO status and error budget remaining, burn rate, golden signals per service, active alerts, recent deployments |
| Service detail | Responders | One service’s RED or USE metrics, dependencies, errors by category, slowest routes |
| Dependency view | Responders | Database, queue, and provider health, saturation |
| Import journey | Product and engineering | Stages, durations, success and failure by tenant and version |
| Capacity and cost | Engineering leads, management | Utilization trends, projections, spend |
| Release view | Release owner | Version rollout, error and latency comparison old versus new |
Design principles:
- Start with the top-level question: “Are users OK?” Put SLOs and symptoms at the top; causes and resources below.
- Show the time of deployments and configuration changes as markers on graphs.
- Use consistent time ranges, units, and colors, and label axes.
- Show percentiles and distributions, not only averages.
- Link dashboards to runbooks and to related dashboards and traces.
- Keep them few and owned. Review, prune, and version dashboards as code so that they are reproducible.
5. Alerting: Principles
An alert is an interruption of a human. It must be worth it. A good alert is:
- Urgent: it needs action now, not tomorrow.
- Actionable: a person can do something about it.
- Real: it fires when users are affected or soon will be.
- Understandable: it says what is wrong, how bad, and where to start.
If an alert does not meet these, it should be a ticket, a dashboard item, or deleted.
Alert on symptoms, not causes. Users care that imports fail, not that CPU is at 80 percent. Page on the symptom (SLO burn, failing journeys); use cause-based metrics (CPU, queue depth, disk) for dashboards and for lower-urgency warnings that point to trouble before users feel it.
Levels of notification
| Level | Delivery | Examples |
|---|---|---|
| Page | Immediate notification to the on-call person, any hour | Fast error budget burn; critical journey failing; data loss risk |
| Ticket or message | Handled in working hours | Slow burn; disk will fill in a week; certificate expires in 20 days |
| Dashboard only | Visible when someone looks | Utilization trends, minor errors |
6. Alerting on Error Budget Burn
Fixed thresholds (“error rate above 2 percent”) are blunt: they miss slow problems and fire on short blips. Alerting on burn rate ties alerts to your SLO:
- A fast burn (the budget would be used up in hours) pages immediately.
- A slow burn (the budget would run out in days) creates a ticket.
A common approach combines two windows to reduce false alarms: alert only if the burn rate is high over both a long window (to confirm it is significant) and a short window (to confirm it is still happening). For example (illustrative values for a 28-day SLO):
1
2
3
4
Page: burn rate above 14 over both 1 hour and 5 minutes
(about 2% of the budget consumed in an hour)
Page: burn rate above 6 over both 6 hours and 30 minutes
Ticket: burn rate above 1 over both 3 days and 6 hours
The exact numbers depend on your SLO and tolerance; the structure is what matters. Each alert maps to a specific SLO and is meaningful to the business.
Add a few direct symptom alerts that SLO math may be slow to catch: total failure of a critical journey (synthetic check failing from multiple locations), data-loss risk (backups failing, replication broken), and security events (from the security assessment).
7. Reduce Noise and Keep Alerts Healthy
Alert quality decays unless maintained.
- Every alert has an owner, a runbook link, and a severity. No runbook usually means the alert is not ready.
- Include context in the message: which SLO, how fast it is burning, affected tenants or routes if known, links to the dashboard and recent changes.
- Group and deduplicate related alerts so one failure produces one notification.
- Use sensible delays and thresholds so brief blips do not page.
- Suppress downstream alerts when the cause is known (a database outage should not also page for every service that depends on it).
- Track alert metrics: number of pages per on-call shift, percentage that required action, time to acknowledge. A common aim is that nearly every page is actionable.
- Review after every page: was it useful? If a page did not need a human, fix or remove it.
- Test alerts end to end: does the right person receive it, on the right device, with the right text?
- Watch the watchers: alert on missing data and on failure of the alerting pipeline itself, with a periodic “heartbeat” that proves the path works.
Alert fatigue is a reliability risk. A team that ignores alerts will miss the real one.
8. Synthetic Checks and Real User Monitoring
Internal metrics can look healthy while users cannot reach the system. Add the outside view:
- Synthetic checks: scripted journeys run on a schedule from outside your infrastructure: load the home page, sign in with a test account, upload a tiny file, confirm that it is listed. Run them from more than one location and alert only on consecutive failures. Use test tenants and test data, keep the credentials in the secrets store, and make sure the checks do not cause cost or load problems.
- Real user monitoring: measurements from actual browsers: page load times, front-end errors, failed requests. They show the true experience, including network and device differences, with privacy care.
These also provide an independent measure for SLOs and a useful check on the internal view.
9. Using AI for Performance and Alerting
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Act as a site reliability engineer reviewing monitoring and alerting.
Inputs:
- SLOs and the error budget policy: [paste]
- Current alert rules with thresholds, severity, and owners: [paste]
- Last 30 days of alert history (counts, times, outcomes): [paste]
- Dashboards in use (titles and purposes): [paste]
- Baseline performance data and capacity limits: [paste]
Tasks:
1. Group the alerts by symptom versus cause, and identify those that
should be pages, tickets, or dashboard items.
2. Identify alerts that fired often without action, and propose
changes.
3. Identify SLOs and critical journeys with no alert, or only
cause-based alerts.
4. Propose burn-rate alerts for each SLO, with windows and
thresholds, and show the reasoning.
5. Identify resources whose trends suggest they will reach limits
within 90 days, using the data provided; show the calculation.
6. List dashboard gaps for responders.
Use only the data provided. Mark assumptions. Do not propose
disabling alerts without stating the risk.
Use the output as a review aid. Test every proposed alert against historical data: would it have fired on past incidents, and how often would it have fired falsely? Recompute any projection by hand. AI can also summarize weekly alert history and detect seasonal patterns, but the decision to change a page that wakes someone is a human one.
10. Practical Exercise
For SignalDesk (or your project):
- Record a baseline: percentiles, error rate, utilization, queue age, by time of day and by version, from load tests or early pilot data.
- List each resource’s capacity limit and what happens at the limit; project when each is likely to be reached.
- Build the service health overview dashboard, with SLO status, burn rate, golden signals, and deployment markers, plus the import journey dashboard.
- Define burn-rate alerts for each SLO with page and ticket levels, and attach runbook links and owners.
- Add a synthetic check for the sign-in and import journey from at least two locations.
- Add alerts for missing data, backup failure, and certificate expiry.
- Replay a past or staged failure against the alerts and measure whether and when they would have fired.
- Run the AI review prompt, test its proposals against history, and update the rules.
Verification
You are ready to continue when:
- A baseline with percentiles exists, with dates and context.
- Capacity limits and growth projections are recorded for each key resource.
- The health dashboard answers “are users OK?” in a glance, and links to detail.
- Pages are tied to symptoms or error budget burn, and each has an owner and a runbook.
- Alerts were tested end to end, including the notification path.
- A synthetic check covers the critical journey from outside.
- Alert noise is measured, with a plan to reduce it.
Key Takeaways
- Use percentiles, baselines, and saturation to understand performance and capacity.
- Dashboards answer specific questions for specific people, starting with “are users OK?”
- Page on symptoms and error budget burn; use cause-based signals for tickets and dashboards.
- Every alert needs an owner, a runbook, and a reason to interrupt a human; prune the rest.
- AI helps review and project; test its proposals against real history.
What’s Next?
Despite the best monitoring, incidents will happen. The next lesson covers incident management: how to organize people, communication, and decisions when something is going wrong.