1. The alerting model #
Policies, conditions, incidents, issues.
The pipeline #
| Object | Role |
|---|---|
| Policy | groups conditions and sets issue creation (per policy, per condition, per condition and signal) |
| Condition | NRQL query evaluated continuously, with critical and warning thresholds |
| Incident | opened when a signal crosses a threshold |
| Issue | groups related incidents; it is what gets notified |
| Workflow | filters issues, enriches them (NRQL query) and sends them to destinations |
| Destination | Slack, 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
FACETvalue 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 #
| Setting | Effect | Advice |
|---|---|---|
| Aggregation window | duration of each evaluated point (1 min by default) | longer for sparse data |
| Method: event flow | waits for data of following windows to arrive | steady data (APM) |
| Method: event timer | closes the window after a delay without data | irregular data |
| Method: cadence | server clock, legacy behaviour | avoid unless needed |
| Gap filling | value used when a point is missing (none, static, last) | "last value" for gauges |
| Loss of signal | opens (or closes) an incident when nothing arrives | essential 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 #
- 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 conditionSELECT count(*) FROM NrAiIncident WHERE event = 'open' FACET conditionName SINCE 7 days ago: noisiest conditionsresource "newrelic_nrql_alert_condition": condition in Terraformresource "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.
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
New Relic best practices
Best practices to succeed with New Relic: adoption approach, account organization, naming and tag...
Service-Level Objectives (new platform) in Dynatrace
Defining and steering SLOs in the Dynatrace Service-Level Objectives app: templates and custom DQ...
SLOs in Dynatrace: objectives, error budget and burn rate
SLI, SLO and SLA, error budget and burn rate: defining an availability or performance SLO in Dyna...
NRQL: querying all your New Relic data
Mastering NRQL, New Relic's query language: SELECT … FROM structure, filters, aggregation functio...
SRE best practices: useful SLOs and respected budgets
Checklist for setting up SLOs that matter: choosing user journeys, realistic objectives, budget p...
New Relic dashboards: building, sharing and analysing
Building useful dashboards in New Relic: NRQL widgets, chart choice, template variables, facet li...
Automating New Relic and controlling costs
Managing New Relic as code and keeping the bill under control: NerdGraph API, newrelic CLI, newre...
The error budget: making decisions with SLOs
Calculate and track an error budget, write an error budget policy and use it to arbitrate between...
Chaos engineering: principles, tools and practice with SLOs
A complete guide to chaos engineering: principles, steady state and hypothesis, blast radius, lin...