• Log inStart now

On August 31, 2024, we're EOLing developer.newrelic.com. All relevant content has been migrated to docs.newrelic.com.

Add alerts

15 min


This procedure is part of a lab that teaches you how to get started with New Relic to monitor your application.

Each procedure in the lab builds upon the last, so make sure you've completed the last procedure, Query custom Business Data, before starting this one.

With your app reporting server and browser-side performance data, you now have full visibility in your application. Happy with your current experinece, you came to know about New Relic alerts, and you've decided to add them.

With alerts, you monitor your services and receive notifications about problems that you're interested in, so that you can react fast to troubleshoot and resolve them.

Create an alert policy

Before you set alert conditions, you must create a policy.

Step 1 of 4

If you're not already logged in, navigate to New Relic, and sign in with your account.

Step 2 of 4

From Alerts & AI, go to Alert conditions (Policies) from the left-hand navigation. Here, you see different options to create a new alert policy or browse pre-built ones.

Click Browse pre-built alerts.

new alert policy

Step 3 of 4

Under Application monitoring, choose Node.js alert policy.

arrow pointing to node js alert policy

This alert policy help you monitor your Node.js applications and provide you folloiwng pre-configured alert conditions:

  • High CPU Utilization
  • Memory Usage
  • Transaction Errors
  • Apdex score
Step 4 of 4

On the next page, select your account from the dropdown and click Done since your Node.js application is already running.

setup Node.js alert policy

This will create your alert policy. Click View alert policy.

view your alert policy

Step of

Rename your alert policy to "Relicstaurants alert policy".

relicstaurants alert policy

Your Relicstaurants alert policy is now setup. Next you add a custom alert condition to this policy.

Create alert conditions

You're going to add a "High page load time" alert condition to your newly created policy.

Create a high page load time condition

Step 1 of 4

From Alert conditions (Policies), click New alert condition.

Add a new condition

This takes you to Create an alert condition page where you use NRQL to define your alert condition.


NRQL is New Relic's SQL-like query language. Read our documentation to know more about what it is and when to use it.

Step 2 of 4

Name your condition High page load time.

Name your condition

Use the following NRQL to set up alert for high load load time.

SELECT average(duration) FROM BrowserInteraction WHERE appName='Relicstraunts'

NRQL alert condition

Step 3 of 4

You want New Relic to alert you when your page takes longer than 1.5 seconds to load at least once in 2 minutes. Scroll down to Set your condition thresholds to adjust thresholds.

Adjust thresholds

Step 4 of 4

Under Connect your condition to a policy, choose "Relicstaurants alert policy" from the dropdown and click Save condition.

Arrow pointing to save condition

Your "High page load time" condition is not added to existing Relicstaurants alert policy.

Updated Relicstaurants alert policy

Add a notification workflow

To receive notifications for any opened violations, you also need to create a notification workflow.

Step 1 of 4

First, move to the Notification settings tab, and click Create workflow.

add notification workflow

Step 2 of 4

This takes you to Create a new workflow to get notified page. From the list of channel options, click Email.

email notification channel

Step 3 of 4

Enter the email you want to receive your notifications on, update the Email subject and click Save.

save workflow

Step 4 of 4

This takes you back to Create a new workflow to get notified page where you see the notification channel is now added. Next, click Activate workflow.

activate workflow

You see the workflow under Notification settings now.

notification settings

During this procedure, you created an alert policy and added a "high page load time" conditions to it. You also added a notification channel to receive notifications about any opened violations.


This procedure is part of a lab that teaches you how to get started with New Relic to monitor your application. Now that you've set up alerts, see your data in action.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.