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.
