Set thresholds for an alert condition

When you create a New Relic Alerts condition, you set thresholds that determine what will open a violation. This document explains what thresholds are and how to set them.

What is a threshold?

For an alert condition, thresholds are the settings that determine what opens a violation. Depending on an alert policy's incident preference, a violation may result in:

  • The creation of an incident.
  • Notifications being sent.

Examples of thresholds:

  • An application’s average web response time is greater than 5 seconds for 15 minutes.
  • An application’s error rate per minute hits 10% or higher at least once in an hour.
  • An application’s AJAX response time deviates a certain amount from its expected baseline behavior.

Besides a mandatory critical threshold level, you can also set thresholds for a less serious warning level, which does not generate an incident or send a notification.

View and set thresholds

Thresholds are set during the process of creating an alert condition:

Goal Instructions
Set thresholds for a new condition Set thresholds as part of the process of creating an alert condition in the UI.
View and update thresholds for existing conditions To view a condition’s thresholds: find that condition in the UI. To update thresholds, select a condition’s thresholds and make changes.

To learn more about specific alert condition types (like baseline and NRQL), see Types of conditions.

Details about other functionality and rules:

Use the Alerts API

You can list and edit conditions via the Alerts API.

Set optional warning level

You can set thresholds for two levels: critical (required) and warning (optional).

Threshold level Details
icon-alert-critical.png Critical (red) Required. When a violation occurs, it will send notifications depending on incident preference settings.
icon-alert-warning.png Warning (yellow) Optional. Does not generate notifications. Use a warning threshold when you want to monitor when a system behavior is concerning or noteworthy but not important enough to require a notification.
Set time intervals

Different alert condition types have different minimum time intervals. For example, some condition types have a minimum time interval of 5 minutes (for example, APM metric alert conditions), and others have a minimum time interval of 1 minute (for example, NRQL alert conditions).

Set URL for runbook instructions

For how to set this via the UI, see Runbook instructions.

For more help

Recommendations for learning more: