Designing VM/Load Balancer Monitoring Thresholds: A Procedure, Not a Fixed Number
Overview
Section titled âOverviewâThe first question that comes up when setting up VM or Load Balancer monitoring is usually âat what percentage should CPU trigger an alert?â The problem starts the moment you answer that question with a bare number. Copying a number validated in one environment straight into another service carries the number over without the workload characteristics, autoscaling policy, SLO, and capacity headroom that number was originally tuned for, leaving only the number behind, with none of the reasoning that produced it.
Instead of handing over a table of fixed thresholds, this post lays out a procedure for designing thresholds: start from the SLO, define the symptoms that matter, pick the signal that best surfaces those symptoms, attach a severity to that signal, and define what a human should do at each severity.
Why the Same 90% CPU Means Different Things
Section titled âWhy the Same 90% CPU Means Different ThingsâCPU utilization is the clearest example of why thresholds resist being pinned to a single number.
For a group of stateless web servers behind autoscaling, 90% CPU is closer to evidence that the autoscaling policy is working as intended. The scale-out threshold has been crossed, a new instance is about to be added, and while an individual instance briefly runs hot, the load balancer keeps spreading traffic so user-facing latency doesnât necessarily spike. Attaching an immediate-response alert to 90% CPU here just builds alert fatigue by treating normal behavior as a problem.
For a single stateful DB VM with no autoscaling, 90% CPU is a completely different signal. Thereâs no extra instance to absorb load, query latency is likely already affecting users, and if the state persists it can cascade into secondary failures like connection timeouts or replication lag. Same number, same metric, opposite meaning.
The difference isnât in the number itself; itâs in whether the instance has a way to recover on its own once saturated. Thatâs why threshold design has to start from the SLO and the available recovery mechanism behind the metric, not the metric value.
Separating Utilization from Saturation
Section titled âSeparating Utilization from SaturationâMetrics like CPU % and memory usage that show up everywhere are, for the most part, utilization metrics. Utilization tells you how busy a resource is, but not whether that busyness is actually delaying request processing.
Saturation metrics fill that gap. Run queue length, the number of requests waiting to be processed, and queue depth all fall into this category. CPU utilization sitting at 70% while the run queue keeps growing can already mean processing delays have started, while CPU hitting 95% for a short burst that immediately drains afterward may carry little real risk.
A few practical principles help here:
- Use utilization metrics to observe trends, and be cautious about using them alone to decide severity.
- Where possible, check saturation signals (queue length, processing latency, queue depth) alongside utilization to distinguish âthe resource is busyâ from âusers are waiting because of the resource.â
- For metrics where a saturation signal is hard to obtain (e.g. plain CPU %), pair the threshold with a duration condition (e.g. sustained for a minimum period) instead of a single-point value, to separate a momentary spike from sustained saturation.
The table below is not the original standard threshold table copied over; itâs a conceptual comparison of why different signal types call for different responses.
| Signal type | What it shows | Why itâs hard to decide severity from alone |
|---|---|---|
| CPU utilization | How busy the resource is | The same value carries different risk depending on autoscaling and redundancy |
| Queue/backlog length (saturation) | Whether work is piling up unprocessed | The growth trend and duration matter more than the absolute value |
| Disk free space | Time remaining before capacity runs out | A sudden consumption pattern like a log burst can slip past a static percentage threshold |
| A specific process/service being alive | Whether a required process is running | This is a presence check, not a value, so it needs a different judgment axis than a percentage-based scheme |
Define Severity by Runbook, Not by Number
Section titled âDefine Severity by Runbook, Not by NumberâA common gap in threshold design is splitting severity purely by percentage ranges. Defining â90% or above is Critical, 95% or above is Fatalâ looks precise on paper, but leaves the actual question (what should the person receiving the alert do) unanswered.
A more robust approach asks the question in reverse: is there already a documented action for a human (or automation) to take when this signal fires, and does delaying that action widen the service impact? The answers to these two questions should determine severity.
- Signals that need an immediate action, where delay widens service impact, get the highest severity and must ship with a runbook. If thereâs no runbook, the signal isnât ready for the highest severity yet.
- Signals that need action but arenât urgent, where a business-hours response from the owning team is enough, get a middle severity.
- Signals that donât require any action and are only useful for trend observation stay at the lowest, informational severity.
Applying this standard, the stateless web server and the stateful DB VM from earlier naturally end up with different severities and different runbooks for the same CPU metric.
Separating Responsibilities: Who Watches What
Section titled âSeparating Responsibilities: Who Watches WhatâMonitoring organizations and tooling differ across companies, but the underlying principle that generalizes is:
- High-severity alerts (signals that need an immediate response and whose failure has a wide blast radius) escalate to a central monitoring team or an on-call rotation to get 24/7 coverage.
- Low-severity alerts (signals where the owning teamâs business-hours response is sufficient) are monitored and handled by the team that owns the service.
The core of this structure isnât âwhich monitoring tool is usedâ; itâs âhow much response delay can this signalâs failure tolerate.â Rather than hard-coding a specific monitoring system or team name into the threshold document, itâs more resilient to establish this separation-of-responsibility principle first and map the actual org structure onto it afterward.
Distinguishing Where a Signal Comes From
Section titled âDistinguishing Where a Signal Comes FromâWhen designing thresholds, metrics that all get called âCPU utilizationâ often turn out to travel through different collection paths under the hood. Without making this distinction explicit, dashboards and alerts can end up showing conflicting values later.
Metrics that a platform exposes as built-in metrics (e.g. standard performance counters like CPU and network throughput) can usually be queried directly without extra agent configuration, and have short latency. In contrast, derived values like âusage as a percentage of total memory,â a specific processâs liveness, or log pattern matching often need to go through a log collection and query engine. These metrics typically require pulling raw logs or raw counters, filtering conditions (| where), and aggregating (| summarize) before the final value comes out.
This distinction matters for two reasons. First, metrics that go through post-processing carry latency proportional to the collection and aggregation interval, which may not fit thresholds that need to react within seconds. Second, the query logic itself becomes part of the severity decision: if the query changes, the same threshold number can mean something different. When documenting a threshold, record not just the value but the collection path and aggregation logic behind it, so the cause can be traced when a value later looks off.
Summary of the Threshold Design Procedure
Section titled âSummary of the Threshold Design ProcedureâPutting the above into a single procedure:
- Define the SLO of the service the resource supports first. Without an SLO, a threshold has no clear target to protect.
- Enumerate the specific symptoms that lead to an SLO violation (increased response latency, rising request failure rate, etc.).
- Find the signal that most reliably gives early warning of that symptom. Prefer saturation signals over utilization signals where possible.
- Write the runbook for what a person should do when the signal fires first, and assign severity based on that runbookâs urgency.
- Document the signalâs collection path (a built-in metric available immediately, or a log-based metric requiring post-processing) and set the evaluation interval to account for that latency.
- Specify the responsible party per severity: central escalation or the owning teamâs own response.
Common Pitfalls
Section titled âCommon Pitfallsâ- Alert fatigue: assigning high severity to normal high utilization hidden behind autoscaling buries the real risk signals in noise.
- Silent failure: watching utilization alone without a saturation signal can leave a resource looking fine while a specific process has actually stopped, with no alert firing at all.
- Metric source confusion: when metrics sharing the same name actually travel through different collection paths and aggregation logic, it becomes hard to trace why a dashboard value and an alertâs judged value diverge.
- Raising severity without a runbook: raising severity without a matching response procedure means the alert fires, but the receiver doesnât know what to do, delaying the response.
Closing
Section titled âClosingâA threshold isnât a constant you set once and bake into a document; itâs the output of a procedure that needs to be revisited whenever the workload and SLO change. Following the procedure laid out here (SLO to symptom, symptom to signal, signal to severity and runbook) lets you derive thresholds fit for your own environment, instead of copying numbers tuned for someone elseâs.