• /
  • Log in
  • Free account

Outlier detection (NRQL alert)

Alerts offers NRQL conditions in three threshold types: static, baseline, and outlier. This document explains how the outlier threshold type works, gives some example use cases and NRQL queries, and explains how to create an outlier condition.

Important

NRQL alerts do not affect alerts policies for a Synthetic monitor. For example, muting a NRQL alert will not mute a Synthetic monitor's alerts.

What is outlier detection?

In software development and operations, it is common to have a group consisting of members you expect to behave approximately the same. For example: for servers using a load balancer, the traffic to the servers may go up or down, but the traffic for all the servers should remain in a fairly tight grouping. See outlier detection in action in this NerdBytes video (2:51 minutes).

The NRQL alert outlier detection feature parses the data returned by your faceted NRQL query and:

  • Looks for the number of expected groups that you specify
  • Looks for outliers (values deviating from a group) based on the sensitivity and time range you set

Additionally, for queries that have more than one group, you can choose to be notified when groups start behaving the same.

Alerts - outlier NRQL alerts

This visual aid will help you understand the types of situations that will trigger a violation and those that won't.

For more on the rules and logic behind this calculation, see Outlier detection rules.

Tip

Note: this feature does not take into account the past behavior of the monitored values; it looks for outliers only in the currently reported data. For an alert type that takes into account past behavior, see Baseline alerting.

Example use cases

These use cases will help you understand when to use the outlier threshold type. Note that the outlier feature requires a NRQL query with a FACET clause.

For more details on how this feature works, see Outlier rules and logic.

Create an outlier alert condition

EOL NOTICE

As of March 31, 2022, we're discontinuing support for several capabilities, including NRQL outlier alert conditions. For more details, including how you can easily prepare for this transition, see our Explorers Hub post and our transition guide for alert capabilities.

To create a NRQL alert that uses outlier detection:

  1. When creating a condition, under Select a product, select NRQL.
  2. For Threshold type, select Outlier.
  3. Create a NRQL query with a FACET clause that returns the values you want to alert on.
  4. Depending on how the returned values group together, set the Number of expected groups.
  5. Adjust the deviation from the center of the group(s) and the duration that will trigger a violation.
  6. Optional: Add a warning threshold and set its deviation.
  7. Set any remaining available options and save.

Rules and logic

Here are the rules and logic behind how outlier detection works:

Create issueEdit page
Copyright © 2022 New Relic Inc.