New Relic allows us to define the conditions in our system that you want to be notified about when a certain threshold is reached. A query and a threshold are both required attributes for a condition. A query defines what you want to be notified about and a threshold defines when you want to be notified. We group together related conditions to create alert policies.
Follow these steps to create an alert policy in New Relic. We will use slack to receive alert notifications.
Step1: Create Alert Policy
- Log in to your New Relic account. Select Alerts&AI->Alert Conditions.
- Give a name to your policy.
- Select Issue Creation Preference. There are three options:
- One issue per policy: Only one issue will be open at a time for the entire policy so you will receive the least number of notifications and will require immediate action.
- One issue per condition: Only one problem will be open for each condition in your policy.
- One issue per incident: An issue will be created for every incident in your policy.
- We will be selecting One issue per policy.
- After that click on Set up notifications.
- Select Slack for sending notifications.

- Click on Select workspace->Create New Destination->Authenticate in one click.
- Enter your workspace URL and allow permission for New Relic to access the workspace.

- Now select the channel and click on Update message->Activate Workflow.

- Now we will create conditions for our policy, so click on Create a condition.

- We’ll develop an NRQL query to get CPU use in percentages and set up an alert if CPU usage goes beyond 50% for three minutes.


- Save the condition by clicking on it.
- Our policy is now created and as a result, we will now receive a notification in slack when the limit that we have defined is crossed.

- We can Acknowledge and close the issue after receiving notification.
Write us to our engineering director to talk about your monitoring alert optimization or to hire cloud infrastructure support team.
