RousselTMLEARNING

Observability

Alerts, service levels and incidents in New Relic

Setting up useful alerting in New Relic: policies and NRQL conditions, static and anomaly thresholds, aggregation windows and loss of signal, incidents and issues, workflows and destinations, muting rules, service levels (SLI, SLO, error budget) and applied intelligence.

1. The alerting model #

Policies, conditions, incidents, issues.

The pipeline #

Alert pipeline
ObjectRole
Policygroups conditions and sets issue creation (per policy, per condition, per condition and signal)
ConditionNRQL query evaluated continuously, with critical and warning thresholds
Incidentopened when a signal crosses a threshold
Issuegroups related incidents; it is what gets notified
Workflowfilters issues, enriches them (NRQL query) and sends them to destinations
DestinationSlack, Teams, e-mail, PagerDuty, ServiceNow, Jira, webhook…

Writing a NRQL condition #

SELECT percentage(count(*), WHERE error IS true) FROM Transaction WHERE appName = 'boutique' FACET host
-- Critical threshold: above 5% for at least 5 minutes
-- Warning: above 2% for at least 10 minutes
  • Each FACET value is a separate signal, evaluated independently (here, one per host).
  • For at least requires every value in the window to breach; at least once in opens the incident on a single value.
  • Static or anomaly thresholds (predicted baseline that accounts for daily and weekly cycles).

2. Tuning the data stream #

Avoiding false alerts.

Settings #

SettingEffectAdvice
Aggregation windowduration of each evaluated point (1 min by default)longer for sparse data
Method: event flowwaits for data of following windows to arrivesteady data (APM)
Method: event timercloses the window after a delay without datairregular data
Method: cadenceserver clock, legacy behaviouravoid unless needed
Gap fillingvalue used when a point is missing (none, static, last)"last value" for gauges
Loss of signalopens (or closes) an incident when nothing arrivesessential to detect a stopped service
Best practice : Alert on symptoms users feel (errors, latency, SLOs) rather than on every technical metric; keep causes (CPU, disk) for dashboards and investigation.

Reducing noise #

  • Muting rules: silence notifications during maintenance, on a schedule, while keeping incident history.
  • Correlation (applied intelligence, decisions): merges issues related by time, entities or topology.
  • Workflow enrichment: add the result of a NRQL query (latest errors, deployed version) to the notification to save time.

3. Service levels #

SLI, SLO and error budget.

Defining an SLO #

Error budget
  • SLI = good events / valid events, defined by two NRQL queries (valid and good, or valid and bad).
  • SLO = target over a rolling period (1, 7 or 28 days), for example 99.5% over 28 days.
  • Error budget = (1 − target) × valid events: with 2 million requests, 0.5% allows 10,000 errors.
  • New Relic suggests default SLIs for APM services (success and latency) and creates burn rate alerts.
Good to know : A burn-rate alert over two windows (for example 1 h and 5 min) reacts quickly to severe incidents without firing on an isolated error.

Commands to know #

Commands to know
  • SELECT percentage(count(*), WHERE error IS true) FROM Transaction FACET appName : error rate condition
  • SELECT count(*) FROM NrAiIncident WHERE event = 'open' FACET conditionName SINCE 7 days ago : noisiest conditions
  • resource "newrelic_nrql_alert_condition" : condition in Terraform
  • resource "newrelic_service_level" : SLO in Terraform

Sources #

Checked in November 2026: New Relic evolves its platform continuously (UI, plans, limits); check the documentation before relying on a detail.

Related articles

New Relic: the observability platform at a glance

Discover New Relic: history, the unified platform and NRDB, MELT data types, entities and golden signals, acc…

New Relic APM: agents, OpenTelemetry and distributed traces

Instrumenting applications with New Relic: language agents, configuration, transactions and Apdex, distribute…

Infrastructure, logs and Kubernetes with New Relic

Monitoring servers, containers and Kubernetes with New Relic: infrastructure agent, on-host integrations, clo…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!