Server Load Monitoring: How to Design Alerts That Work
The common advice to alert whenever load exceeds the CPU count is incomplete. Useful server load monitoring correlates load with CPU contention, blocked I/O and memory stalls, then requires those conditions to persist before sending a page. An alert also needs explicit behavior for missing samples, recovery and maintenance, otherwise a quiet dashboard can mean either a healthy host or a broken collector.
Table of Contents
- Three Load Alert Policies at a Glance
- Why One Load Threshold Misleads
- Companion Signals to Read With Load
- Set a Baseline Before Any Threshold
- Missing Data, Recovery and Flapping Rules
- Acceptance Test on a Non-Production Host
- Confirm the Policy Before Production Rollout
Three Load Alert Policies at a Glance
Illustrative load alert policies
| Policy | Window and reason | Companion signals |
|---|---|---|
| A. CPU contention | Normalized load above 1.0 for 10 minutes; covers several 60-second samples and ignores short batch bursts | CPU user plus system above 85%; CPU pressure some avg60 above 20% |
| B. Blocked I/O | Normalized load above 1.0 for 15 minutes, with user plus system below 50%; tolerates backup or scan jobs that briefly block tasks | iowait above 20%; D-state task count rising above baseline; disk latency above baseline |
| C. Memory pressure | Normalized load above 1.0 and memory pressure full avg60 above 0% for 5 minutes; sustained memory stalls deserve a shorter evaluation window |
Available memory below 10% of total; swap-in rate above baseline |
Every number in this table is an illustrative policy setting, not a measured result or universal operating limit. Normalized load means load divided by the logical CPU count, using the same execution scope for both measurements. These examples use the short load average as the trigger input and evaluate the complete condition at a proposed collection interval.
How the conditions combine
Policy A requires all its conditions to remain true throughout its opening window. Busy CPUs alone aren't enough: a productive batch host can stay busy without an actionable scheduling problem. CPU pressure supplies evidence that tasks wait for execution.
Policy B deliberately separates blocked work from compute demand. Its longer window allows an expected storage-heavy job to finish without immediately paging an operator. D-state counts and device latency must corroborate iowait; none independently establishes a storage fault.
Policy C targets sustained memory stalls rather than a large used-memory percentage. Its swap-in requirement makes this particular design unsuitable for a host without swap. Such a host needs a separately designed and tested memory policy, not a fabricated zero swap-in value.
Design boundary: These are alert specifications, not claims about native templates, expression syntax or settings in any monitoring product.
What makes an alert actionable
An operator should assign each policy an owner, an incident route and a first diagnostic action. Infrastructure pressure should also be checked against service behavior: Google's SRE monitoring guidance identifies latency, traffic, errors and saturation as complementary signals, rather than treating resource utilization as service health.
The opening thresholds remain provisional until the host baseline replaces them. If a monitoring workflow can't collect a companion signal or express the combined duration condition, that policy isn't yet testable. A normalized load trigger is a starting point for investigation, not an automatic declaration of a critical incident.
Why One Load Threshold Misleads
According to the Linux kernel's /proc documentation, /proc/loadavg exposes 1-, 5- and 15-minute averages covering runnable tasks and tasks in uninterruptible sleep, so load isn't a CPU-utilization percentage. A load of 8 on an 8-CPU host therefore describes a different scheduling situation from the same load on a 32-CPU host.
For the accounting details and basic interpretation, the existing load-average explanation supplies the prerequisite. Repeating that primer wouldn't help an operator decide when to page, how to handle a collector outage or what counts as recovery.
A load threshold identifies demand. Companion signals determine which operational condition deserves attention.
High load with idle CPU needs a different investigation from high load with sustained compute contention. The guide to why a server feels slow while top shows idle CPU addresses that diagnostic question.
The practical scope here is narrower: designing alert conditions, proving their transitions and preventing false recovery. A rule that correctly detects a busy host can still be operationally wrong if it pages during routine work or clears when its telemetry disappears.
Companion Signals to Read With Load
A load alert that fires alone tells you demand exists and nothing else. Two hosts can show the same load average while one saturates its CPUs and the other waits on a single slow disk, and each companion signal exists to answer one specific question about that difference. A collector that reduces every CPU state to one utilization value removes the information needed to distinguish compute contention from waiting.
Companion signals for load alerts
| Signal | Source | What it shows | Use with load |
|---|---|---|---|
| Load average, short through long windows | /proc/loadavg |
Runnable plus uninterruptible tasks | Separates recent bursts from persistent pressure |
| CPU user and system | /proc/stat, top, mpstat |
Application computation and kernel work | Supports a CPU-contention explanation |
| iowait | /proc/stat, top, iostat |
CPU accounting associated with outstanding I/O waits | Supports Policy B when blocked tasks and latency agree |
| Steal time | /proc/stat, top |
Guest CPU time unavailable because of hypervisor scheduling | Flags virtualization contention for investigation |
CPU pressure some |
/proc/pressure/cpu |
Time with tasks waiting for CPU | Corroborates Policy A |
Memory pressure some and full |
/proc/pressure/memory |
Task stalls attributable to memory contention | Corroborates Policy C |
I/O pressure some and full |
/proc/pressure/io |
Task stalls attributable to I/O contention | Corroborates Policy B |
| D-state task count | ps -eo state,pid,comm |
Tasks currently in uninterruptible sleep | Compares blocked-task counts with baseline |
Pressure measures lost progress
The Linux PSI documentation for kernel 6.8 defines some as time when at least one task is stalled and full as time when all non-idle tasks are stalled simultaneously. Partial contention can coexist with useful progress, while full stalls indicate a more severe interruption of workload progress. That distinction is why the policies treat some as a corroborating signal rather than a paging condition on its own: a host can show nonzero some pressure during ordinary bursts and still finish its work.
PSI requires kernel support and an enabled interface. Availability and interpretation of CPU full depend on kernel version and scope, so Policy A uses CPU some instead. Record the actual kernel version and consult its matching documentation before depending on a field.
CPU user, system, iowait and steal should remain separate series. The kernel CPU-load documentation explains these accounting dimensions, and iowait in particular shouldn't be treated as a precise device-level measurement. The companion CPU usage monitoring guide covers the collection side, including how per-state series are gathered and stored.
Correlation isn't proof of cause
A D-state task isn't automatically evidence of a failed local disk. Network filesystems and other kernel waits can produce blocked tasks, and a single ps snapshot can miss intermittent blocking entirely. Counts should be collected over the full policy window and matched to the relevant devices or mounts before the storage policy is allowed to page.
The same boundary applies outside the server. WATCHING FORCES' explanation of why your router slows IPTV streams is relevant when a streaming complaint requires a separate router investigation, but it doesn't establish the cause of Linux host pressure.
The practical rule: page on a correlated condition that names the suspected bottleneck, never on a companion signal alone. High steal time, for example, warrants a virtualization-specific investigation rather than forcing the event into the CPU or storage policy.
Set a Baseline Before Any Threshold
Baseline collection should run on the monitored Linux host, in the same host or container scope as the eventual collector. Ordinary user permissions usually suffice for the read-only commands below; restricted /proc mounts or process visibility can leave gaps.
The baseline workflow starts with resource inventory and then adds interval measurements.

A read-only collection sequence
- Record execution scope. Run
nprocand record CPU affinity and container limits separately. Its result isn't a portable substitute for checking cgroup CPU quotas; behavior can also differ by installed Coreutils version. Record the kernel and tool versions used. - Capture raw interfaces. Read
/proc/loadavg,/proc/meminfoand the available/proc/pressure/files withcat. Preserve missing-file or permission errors instead of replacing them with numeric values. - Sample scheduler and memory activity. Run
vmstat 5 12. Ignore the first data report, which summarizes activity since boot, then inspectr,b,si,waandstin the interval reports. - Sample the storage path. Run
iostat -x 5 3in another terminal during the same observation period. Ignore its initial since-boot report and compare intervalawait, queue and utilization fields for the relevant devices. - Observe blocked tasks. Run
ps -eo state,pid,commrepeatedly during that period and retain rows whose state begins withD. Record timestamps so snapshots can be compared with the interval metrics.
These are proposed sampling commands, not reported execution. They require procps tools and, for iostat, sysstat; operators should check installed manual pages because columns and tool behavior can differ by version.
Establish normal operating bands
Repeat collection during peak demand and scheduled jobs. As an illustrative baseline plan, review a full day of history, extending the observation period whenever weekly or less frequent jobs aren't represented. A baseline that excludes backups cannot justify backup-time alert behavior.
Brendan Gregg's analysis of Linux load averages explains why normalization must be paired with CPU states, scheduler delay and I/O evidence. The operational task is to establish which combinations are normal for this workload, not merely its highest load value.
An illustrative, unmeasured scenario is an eight-CPU host showing load 3.1 and wa of 18 during backup, with CPU pressure near zero. That pattern favors checking blocked I/O before purchasing compute capacity, but device latency and task evidence are still needed.
The performance baseline guide provides a broader framework for preserving workload context. Each baseline should retain units, aggregation, collection scope and known gaps alongside the values.
Missing Data, Recovery and Flapping Rules
An alert needs a state model, not just an expression. The following illustrative design distinguishes healthy, pending, firing, recovering and unknown states.
| State | Entry condition | Required behavior |
|---|---|---|
| Healthy | Fresh measurements remain inside the normal band | Continue evaluation |
| Pending | The complete trigger becomes true | Start the sustained-condition timer |
| Firing | The complete trigger persists for its opening window | Route the incident |
| Recovering | Fresh measurements meet the recovery condition | Start a separate recovery timer |
| Unknown | Required measurements are absent or stale | Prevent a healthy verdict and evaluate collection failure |
A single qualifying sample starts a timer; it doesn't justify a page. A failed trigger sample resets the pending timer, while a missing required sample interrupts proof that the condition persisted. Once firing, an incident must not resolve because evaluation becomes unknown.
Recovery needs fresh evidence
For this illustrative recovery design, normalized load must remain below 0.7 for the same duration that opened the incident. Policy A therefore needs 10 minutes below that recovery threshold. Recovery should also require the policy's pressure evidence to return to its established normal band, so low load can't conceal continuing memory or I/O stalls.
For the proposed 60-second sampling schedule, three consecutive missing intervals raise a collection-failure alert. Missing companion metrics should similarly make their policy unevaluable, even if load itself continues arriving. The monitoring data quality guide addresses the distinction between absent telemetry and a valid quiet measurement.
Recovery rule: Silence from a collector is not evidence that the resource recovered.
Maintenance must remain observable
Known backup or deployment windows can suppress load notifications when an operator explicitly accepts the risk. Collection and incident-state evaluation should continue where supported, and collection-failure notifications should remain active.
Suppression should have an owner and an expiry. Otherwise an intended maintenance exception can become a permanent monitoring gap.
These are designed behaviors, not assumed native settings. Before relying on them, operators must confirm that the alert workflow supports duration conditions, separate recovery thresholds, stale-data detection and notification suppression with the intended semantics. A missing sample is unknown, and unknown is never healthy.
Acceptance Test on a Non-Production Host
Acceptance testing belongs on an isolated, disposable host with a representative kernel, storage path, memory configuration and workload type. The procedure validates both the input signals and the alert-state transitions, proving the policy design end to end before any notification can reach an on-call phone.
The acceptance process should leave a record of every attempted stimulus and observed transition.

Preconditions and safe execution
Record kernel, procps, sysstat, stress-ng, agent and rule-engine versions. The server monitoring checklist can hold the prerequisites, incident route and rollback owner. Check the candidate commands against the documentation of the installed stress-ng package before execution, because flags and worker behavior vary between versions.
The following commands are illustrative test stimuli, not deterministic ways to satisfy the policies:
- CPU stimulus:
stress-ng --cpu 2 --timeout 900sproposes a sustained compute run. On a large host, those workers may never satisfy Policy A. - I/O stimulus:
stress-ng --io 4 --timeout 1200sproposes an I/O-related run, but it doesn't guarantee high device latency, D-state growth or the required iowait. A representative isolated storage workload may be necessary. - Memory stimulus:
stress-ng --vm 1 --vm-bytes 2G --timeout 420sproposes allocation activity. It may produce no memory pressure on a roomy host and must not be expected to open Policy C merely because it runs. - Short-burst stimulus:
stress-ng --cpu 2 --timeout 120sproposes a burst shorter than the opening window. Pending state is acceptable; a page isn't.
Memory allocation must remain below safely available capacity with headroom for the OS, collector and test services. Deliberately exhausting memory to force an alert risks an OOM kill and isn't an acceptable shortcut. If safe resource limits prevent the required combination, validate rule logic with synthetic inputs and classify live stimulus coverage as incomplete.
Pass criteria
Acceptance criteria for the three policies
| Test | Expected signal | Pass condition |
|---|---|---|
| CPU burn, proposed 900-second run | Policy A opens after its window, if all inputs qualify | All A conditions persist for 10 minutes before notification; no early page |
| I/O burn, proposed 1,200-second run | Policy B opens while A stays closed, if inputs qualify | All B conditions persist for 15 minutes, including elevated iowait, blocked tasks and latency |
| Memory burn, proposed 420-second run | Policy C opens, if inputs qualify | All C conditions persist for 5 minutes; recovery waits for fresh normal-band evidence and its recovery window |
| Agent stopped for three intervals | Collection-failure alert | Collection alert opens; no new load alert opens; absent load isn't zero; fresh telemetry permits collection recovery |
| Recovery after CPU burn | Policy A clears | Normalized load remains below 0.7 and CPU contention returns to normal for 10 minutes |
A stimulus that doesn't cross the specified inputs is inconclusive, not proof that alerting failed. Each test record should include raw samples, evaluation timestamps, notification timestamps and pass, fail or incomplete status. A row marked incomplete means the host never produced the qualifying signal, so the policy remains unproven for that input path and the test should be repeated with a stronger or better-targeted stimulus.
For the collection test, an authorized administrator stops only the test host's known agent service, waits through the designed missing-data period, then restarts it. Operators shouldn't guess a service-unit name. Existing firing incidents must remain unresolved during the gap, because a restart that clears open incidents hides state loss.
Load generation and agent control change host state; installing temporary rules also changes monitoring configuration. Tests require a maintenance window, and foreground stress runs should stop with Ctrl-C if safety limits are approached. Rollback removes the temporary policies and collection rule, restores the agent and verifies fresh readings. Keep the completed acceptance record with the policy definition, since the rollout review depends on it.
Confirm the Policy Before Production Rollout
Production rollout should begin with a single representative host, existing monitoring still active and notifications initially routed to a controlled test destination. Expansion should wait until the required acceptance cases pass and the production baseline supports the chosen bands.
A rollout review should compare actual readings with the acceptance record rather than merely confirm that an agent appears online.

Verify collection before tuning
An illustrative pilot compares an hour of hosted load and iowait history with timestamped host observations, including vmstat 5 and /proc/loadavg. Collection boundaries and aggregation must match before discrepancies are called errors. A dashboard's averaged value won't necessarily equal an individual terminal sample.
Fivenines collects Linux and Windows server metrics through an open-source agent, with a default interval of 60 seconds. Its telemetry includes CPU, memory, swap, load, disk I/O, partitions, mountpoints, network counters and interfaces, and top process names by resource use. The hosted platform is distinct from that open-source agent.
The Linux server monitoring feature page is the relevant scope checkpoint before a pilot. PSI, separately exposed iowait, D-state coverage and compound recovery semantics must be confirmed before rules depend on them; general CPU or process visibility doesn't establish those capabilities.
A visible chart proves that some telemetry arrived. Acceptance evidence must establish that the specific alert inputs arrived correctly.
At the default cadence, the illustrative CPU opening window spans about ten samples, but elapsed-time evaluation and collection gaps still matter. Rollback should remove the temporary policies and collection-failure rule while established monitoring remains active.
Fivenines offers hosted production-infrastructure visibility, server metric history and alert workflows through an open-source agent. A focused next step is a one-host pilot that verifies the required readings and tests one safe alert before enabling paging. Visit Fivenines to evaluate that collection and workflow fit against the designed policy.