Why do users notice system failures first? Monitoring, alerting, and on-call rules to set before launch
If the first outage after launch is reported by a customer calling you, the root cause is usually not how much monitoring you bought. It is that three things were never written down before launch: what counts as abnormal, who gets notified, and how quickly the notified person must act. Monitoring collects the signals, alerting finds a person when a signal crosses a line, and on-call duty gives that person the authority to act. Miss any one of the three and even a beautiful dashboard becomes nothing more than replay after the fact.
A workable minimum for catching failures proactively is not complicated: a few core metrics tied directly to business outcomes, alert rules graded by impact, a clear receiving and escalation path, and a one-page runbook usable at three in the morning. Team size changes tooling and staffing, not these four things.
Why "users notice first" is so common
Monitoring systems rarely lack data. What is missing is the habit of designing backwards from business outcomes.
Many projects launch with host monitoring: CPU, memory, disk, process liveness. These answer "is the server still alive" but not "can users place orders", "did the payment callback arrive", or "is the mini-program home screen blank". A healthy server with a broken business is not rare in production - an exhausted database connection pool, a misconfigured payment callback URL, an expired certificate, a growing message-queue backlog, or a scheduled job that quietly stopped will not turn any CPU graph red.
A second common cause is that alerts have no human landing point. Rules live in the monitoring platform, notifications go to a group nobody reads, or they go only to the engineer who wrote the code rather than the person on duty that day. The alert fires, but nobody owns how fast someone must respond.
Third is the lack of severity levels. Every alert has one priority and rings day and night, and a few weeks later the team mutes the whole group - including the genuinely serious failures. That is a design problem, not an attitude problem.
A more hidden variant: the acceptance checklist has no operations items. Functional, performance, and security acceptance are all done, but nobody accepts "will we know when something breaks". The system goes dark at handover and monitoring is retrofitted after the first incident.
For custom software, AI applications, mini-programs and apps, the problem is more pronounced. These systems depend on external components: payment channels, SMS, maps, object storage, platform reviews, internal ERP or finance systems, and for AI applications an additional model-service layer. Failures in external dependencies do not show up in your own server metrics, but to users your system is simply broken. For the risk profile of the first month, see our guide on what usually goes wrong in the first month after a system launches.
Is your monitoring and alerting good enough? Six checks
Before discussing which tools to buy, check the design against these six questions.
1. Are metrics derived from business outcomes. Every core metric should answer "what do users experience when this is abnormal". If it cannot, it belongs on a troubleshooting dashboard, not in an alert rule. A simple test: read the metric name to the business owner; can they immediately state the user impact?
2. Does every alert map to an action. What should the recipient do first? If the answer is "take a look", it is a notification, not an alert. An actionable alert carries three things: the symptom, the scope of impact, and the next entry point (which dashboard, which runbook, whom to call).
3. Are there severity levels and response deadlines. Levels exist to decide whether to wake someone at night. Each level must bind a notification channel (phone, IM, email), a first-response deadline, and escalation conditions. A level without a deadline is not a level.
4. Are recipients, escalation path, and authority explicit. Who is first line, who is second line, who is the client-side contact, who can decide to roll back, who can publish an external notice. All of this must be decided before an incident, not in the middle of a call.
5. Is the data needed for diagnosis complete. Knowing something is wrong is step one; locating which layer is wrong within half an hour determines recovery speed. At minimum: structured logs, request tracing that follows a full call chain, and a change log covering releases, config changes, and third-party changes. Missing any one turns diagnosis into guesswork.
6. Has it been rehearsed. The worst case is monitoring that has never fired. A drill verifies not how good the document is, but how long it actually takes from alert to someone taking over.
Layering metrics: business, application, resources
Three layers keep alerts pointed at the first two, while the resource layer is mainly for diagnosis.
Business layer is the one that matters most. Typical examples: login success rate, core page open success rate, order placement success rate, payment success rate, callback arrival rate, order fulfillment completion rate, core query response time. AI applications add task success rate, the share of outputs rejected by reviewers, human takeover rate, and abnormal per-task cost. These metrics usually require instrumentation in the business system; generic monitoring cannot collect them automatically, so they must be designed into the system before launch.
Interface and application layer explains why the business layer dropped: API error rate split by status and business error code, P95/P99 latency, queue backlog depth, scheduled job results, retry and timeout counts, third-party failure rate. This is where diagnosis happens.
Resource layer covers CPU, memory, disk, connections, bandwidth, and remaining third-party quota. On its own it means little, but on the same timeline as the two upper layers it quickly distinguishes a traffic increase from a code defect.
After layering, a practical pattern is to pair each business metric with a floor alert and a trend alert. The floor alert handles already broken; the trend alert handles getting worse - payment success sliding from 98% to 92% without hitting the floor is still an obvious trend.
Setting thresholds without a flood of false alarms on day one
With no historical data, any precise threshold is a guess. A safer order:
- Start with absolute floors, for example payment success rate is 0 for 3 minutes, or core API error rate above 10% for 5 minutes. These produce few false alarms and cover the most serious cases.
- After one to two weeks of baseline, add relative thresholds against the same period, for example more than 30% below the same period on the past seven working days.
- Treat duration as a parameter as important as the value. A momentary spike and a five-minute anomaly have very different priority.
- Keep a record of threshold changes: who changed it, why, and how long it was observed afterwards. Otherwise nobody will know why the number is what it is six months later.
A useful concept here is the service level objective (SLO). Instead of a pile of thresholds per interface, define what availability target the core path needs this month, then use the error budget to decide when to stop adding features and fix stability. The value of an SLO is not the number; it makes "do we deal with this now" a question agreed in advance. Load and capacity testing is the basis for that number; see our note on why a system should undergo load and stress testing before launch.
Alert severity: a basis for waking people at night
A workable scheme looks like this (level names may differ, the criteria must not):
| Level | Criteria | Notification | First response | Typical example |
|---|---|---|---|---|
| P1 Outage | Core business fully unavailable, or money or data security involved | Phone plus IM, wake the on-call directly | Immediately | Full payment path failure, login unavailable, accidental data deletion |
| P2 Degraded | Core function partly unavailable, workaround exists but impact is clear | IM plus phone outside working hours | Within 15 minutes | One order type fails to submit, push delay beyond threshold |
| P3 Abnormal | Local function abnormal, limited user impact | IM group | Handle within working hours | A single report export fails, non-core page errors |
| P4 Early warning | Trend change or capacity warning, no user impact yet | Daily or weekly digest | Handle per plan | Disk usage 75%, third-party quota 20% left |
The point is not the level names but the last column - every level needs typical examples. With only critical, normal, or minor labels, the on-call cannot tell which level the alert in front of them is. Real business scenarios prevent misjudgment.
Three more rules belong in policy:
- One root cause, one alert. Dampen dependencies: when the database dies, do not fire twenty alerts for the order API, the inventory API, and report timeouts. Configure dependency suppression so downstream alerts go quiet while the upstream is failing.
- Silencing needs an expiry and an approver. Temporary muting is allowed but must state the reason, the end time, and who approved it. Indefinite silence is a precursor to an incident.
- Alerts must carry context. Current value, threshold, scope of impact, latest change, link to the runbook. The on-call should not need to log into three systems before starting work.
On-call, escalation, and authority
An alert that nobody picks up is just noise. This part is most often skipped because it does not look like a technical problem.
On-call schedule: state who is first line and second line each day, and how handover works before holidays. Small teams can rotate developers, but must write down that the phone must be reachable during your rotation and what happens if you do not respond. A rotation without constraints is not on-call.
Escalation path: if first line does not act within the first-response deadline, escalate automatically to second line; P1 incidents notify the business owner and the client contact at the same time. Escalation is not punishment; it prevents a single point of silence.
Authority: who can restart a service, who can roll back a release, who can switch off a feature flag, who can publish an external notice. Grant these before an incident, not by hunting for approvals on a call. For high-risk actions involving money or data, require two-person confirmation, but never approval chains until dawn.
Client-side participation: in custom projects the client is often part of the chain - business staff spot anomalies, finance confirms reconciliation gaps, operations decide whether to pause a campaign. Putting those contacts in the on-call table works far better than asking afterwards.
AI applications need two extra decisions: the degradation path when the model service is unavailable (switch to a backup model, hand over to humans, temporarily disable the feature), and a fast kill switch for abnormal output. Model-service failures and latency swings are not in your server metrics and need independent detection and fallback. Agent-style applications have more complex run paths; see our separate guide on tracing enterprise AI agent decisions, tools, approvals, and failures.
Changes, logs, and post-mortems: making diagnosis evidence-based
Most production incidents relate to a change. Putting release records, config changes, third-party interface changes, and campaign go-live times on the same timeline as your metrics turns guessing into seeing. This does not need sophisticated tooling; a time-ordered change register solves most of it.
Logs must be structured, containing at minimum time, service, request ID, user or tenant ID, result status, duration, and error code. Unstructured logs are nearly impossible to aggregate during an incident. Tracing must follow one complete call, especially across systems and third parties - a large share of diagnosis time goes to deciding whether a problem is ours or theirs.
Post-mortems should target the mechanism, not the person. A useful post-mortem answers: did the alert fire on time, did someone pick it up on time, how long did diagnosis take, which piece of information was missing and caused detours, which rule generated noise. Output should be concrete rule changes and runbook updates, not be more careful next time. Responsibility and response commitments after a failure are a separate matter from monitoring design; see our guide on who fixes failures after launch and how fast.
How teams of different sizes implement this
Under five people, single system. Do not chase a full observability platform. Use a managed monitoring service for business and API metrics, configure five to eight core alerts to your phone, and write a one-page runbook. What matters is that those five to eight cover the cases where users complain immediately.
With money flows or multiple systems. Severity levels, an on-call schedule, and an escalation path are mandatory, and change records must be part of diagnosis. The typical failure at this stage is not too few tools but too many alerts and nobody owning severity.
AI applications and agents. Beyond general metrics, add model call success rate, average and tail latency, cost per task, human takeover rate, and sampled output quality. Prepare degradation and a kill switch. Agent failures often look like a task that did not finish while the system reported no error; status codes alone will not reveal them.
Regulated or government environments. Beyond availability, consider log retention periods, operation audit, separation of duties, and incident reporting procedures. These requirements feed back into where monitoring is deployed and how data flows; they must be settled together with compliance during solution design.
Six steps you can follow before launch
- List business outcomes. Write down three to five business actions where users complain immediately if unavailable, and turn them into computable metrics with numerator, denominator, and counting rules all explicit.
- Set baselines and thresholds. For a new system start with absolute floors; with historical data use same-period comparison, and specify the duration for each rule.
- Write the alert rule table. One rule per row: metric, condition, level, notification, recipient, first-response deadline, runbook entry. This table is a deliverable, not an internal draft.
- Define on-call and authority. Schedule, escalation path, rollback and kill-switch permissions, client contacts - written down in one pass.
- Run a drill. Trigger a real alert in staging or at low peak, record the actual time from firing to pickup, and fix the broken links.
- Review two weeks after launch. Count alerts, the share that were actionable, and the noisiest rules; delete alerts nobody acts on. Credibility of a monitoring system is consumed by noise.
Boiling Water Technology's advice and delivery boundary
For custom software, AI application, mini-program, and app projects, Boiling Water Technology recommends treating observability as part of the launch checklist and agreeing metric definitions, alert recipients, and on-call arrangements with the client during solution design rather than after delivery. This work is typically delivered as a metric list, an alert rule table with levels and recipients, a runbook, and a record of one alert drill; the exact scope follows the project agreement.
On division of labor, confirming business thresholds and naming internal on-call staff require client participation - only the business side knows how low payment success rate becomes an incident and which moments must not go down. Technical implementation, rule configuration, drill organization, and handover are on us. Specific response times and availability commitments follow the service terms in the contract; the time limits in this article are design references only and do not constitute a commitment for any project.
If a system is already live without this mechanism, start with the most urgent part: connect three to five core business metrics, configure floor alerts, and notify specific people. Full observability can be built in batches, but someone knowing we are down cannot wait.
Frequently asked questions
Q: Do we have to buy a commercial APM or observability platform?
Not necessarily. Open-source tooling plus managed monitoring meets the needs of most small and mid-sized systems. What decides the outcome is whether metrics are right and whether someone picks up alerts, not the brand. Commercial platforms become clearly advantageous in tracing and correlation once scale and cross-system calls grow.
Q: There are so many alerts that the team has started muting them. What now?
Subtract first, then add. Count alerts over two weeks, classify by whether they led to action, delete or downgrade those that did not; merge multiple alerts from one root cause into one; add a runbook entry to every alert you keep. The goal is not fewer alerts but that each one is worth reading.
Q: Without dedicated ops, is it realistic for developers to build features and be on call?
Realistic, with boundaries. Small teams can restrict night wake-ups to P1 and P2, handle P3 and P4 in working hours, write runbooks to the point where they can be executed without the original author, and automate handling of frequent failures such as restarts, traffic switching, and rate limiting. Long term, either add people or hand operations to a provider with explicit service terms.
Q: How long should monitoring data be retained?
It depends on purpose and compliance. Raw metrics for diagnosis are usually enough for one to three months; aggregates for capacity planning and trend analysis can be kept longer; audit- and money-related data follow industry rules. Retention drives cost and should be decided during design, not by emergency expansion later.
Source note
This article is a methodology note on engineering practice, compiled from general reliability engineering and operations practice; it cites no external statistics or third-party benchmarks. Specific thresholds, time limits, and severity examples are design references; actual values should be set according to business impact, team size, and contract terms. For external capabilities such as cloud services, payment channels, and platform reviews, the official documentation and latest rules of the relevant provider prevail.