Anomaly Detection in New Relic: Alerts That Learn Normal

Normal at 3 AM is different from normal at 3 PM

Static thresholds struggle with traffic that varies by hour and day. "Throughput below 100 rpm" is a crisis at noon and normal at 4 AM. Anomaly detection learns what normal looks like and alerts on deviations.

Baseline (Anomaly) Conditions

Create an NRQL alert condition with anomaly threshold type:

  • New Relic learns the signal's historical behaviour, including daily and weekly seasonality
  • Alerts fire when values deviate beyond a configured number of standard deviations
  • Choose direction: upper only, lower only, or both

Good Candidates

  • Throughput (sudden drops often mean outages upstream)
  • Order counts and sign-ups — business KPIs
  • Queue depth
  • Response time for services with variable traffic

Poor Candidates

  • Signals with hard limits (disk full, memory limit)
  • Error rates where any increase above a known level is bad — static thresholds work better
  • Very new services without enough history

Tuning Sensitivity

  • Start with moderate sensitivity
  • Watch false positives for two weeks
  • Adjust standard deviation thresholds and durations

Proactive Detection

New Relic can also surface anomalies automatically across golden signals for your services, without you configuring each one — useful as an early-warning feed alongside your explicit alerts.

Use static thresholds for limits and anomaly detection for patterns. Most mature setups use both.

Arivanandhan Chitheshwaran