{"id":698,"date":"2022-05-31T09:13:32","date_gmt":"2022-05-31T09:13:32","guid":{"rendered":"https:\/\/www.checkmateq.com\/blog\/?p=698"},"modified":"2023-08-07T09:08:33","modified_gmt":"2023-08-07T09:08:33","slug":"new-relic-slack-alert","status":"publish","type":"post","link":"https:\/\/www.checkmateq.com\/blog\/new-relic-slack-alert","title":{"rendered":"How to create new relic slack alert policies"},"content":{"rendered":"<p>New<a href=\"https:\/\/www.checkmateq.com\/full-stack-development\"><strong> Relic<\/strong><\/a> allows us to define the <strong>conditions<\/strong> in our system that you want to be notified about when a certain threshold is reached. A <strong>query<\/strong> and a <strong>threshold<\/strong> 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 <strong>alert policies<\/strong>.<\/p>\n<p>Follow these steps to create an alert policy in New Relic. We will use slack to receive alert notifications.<\/p>\n<h3>Step1:\u00a0 Create Alert Policy<\/h3>\n<ul>\n<li>Log in to your New Relic account. Select <strong>Alerts&amp;AI-&gt;Alert Conditions<\/strong>.<\/li>\n<li>Give a name to your policy.<\/li>\n<li>Select Issue Creation Preference. There are three options:<\/li>\n<\/ul>\n<ol>\n<li><strong>\u00a0One issue per policy:<\/strong> 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.<\/li>\n<li><strong>\u00a0One issue per condition: <\/strong>Only one problem will be open for each condition in your policy.<\/li>\n<li><strong>One issue per incident: <\/strong>An issue will be created for every incident in your policy.<\/li>\n<\/ol>\n<ul>\n<li>We will be selecting One issue per policy.<\/li>\n<li>After that click on <strong>Set up notifications<\/strong>.<\/li>\n<li>Select Slack for sending notifications.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-771\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-121207-300x164.png\" alt=\"New relic\" width=\"719\" height=\"393\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-121207-300x164.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-121207-768x420.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-121207.png 802w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Click on <strong>Select workspace-&gt;Create New Destination-&gt;Authenticate in one click<\/strong>.<\/li>\n<li>Enter your workspace URL and allow permission for New Relic to access the workspace.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-772\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124110-300x138.png\" alt=\"\" width=\"748\" height=\"344\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124110-300x138.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124110-1024x471.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124110-768x353.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124110.png 1069w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Now select the channel and click on <strong>Update message-&gt;Activate Workflow<\/strong>.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-773\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124729-300x102.png\" alt=\"New relic\" width=\"726\" height=\"247\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124729-300x102.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124729-1024x349.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124729-768x262.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124729-1200x409.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-124729.png 1270w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Now we will create conditions for our policy, so click on <strong>Create a condition<\/strong>.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-774\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-132554-300x96.png\" alt=\"New relic\" width=\"744\" height=\"238\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-132554-300x96.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-132554-1024x327.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-132554-768x245.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-132554-1200x383.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-132554.png 1282w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>We&#8217;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.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-775\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141739-300x52.png\" alt=\"New relic\" width=\"756\" height=\"131\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141739-300x52.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141739-1024x176.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141739-768x132.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141739-1200x206.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141739.png 1327w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-776\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141801-300x105.png\" alt=\"New relic\" width=\"743\" height=\"260\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141801-300x105.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141801-1024x360.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141801-768x270.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141801-1200x422.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-141801.png 1264w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Save the condition by clicking on it.<\/li>\n<li>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.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-778\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-143050-300x84.png\" alt=\"New relic\" width=\"736\" height=\"206\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-143050-300x84.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-143050-1024x286.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-143050-768x215.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-31-143050.png 1077w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>We can Acknowledge and close the issue after receiving notification.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.checkmateq.com\/contact-us\"><strong>Write us<\/strong> <\/a>to our engineering director to talk about your monitoring alert optimization or to hire cloud infrastructure support team.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/www.checkmateq.com\/blog\/new-relic-slack-alert\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to create new relic slack alert policies&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":663,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":[],"categories":[1],"tags":[15,17,2,11,8,6],"_links":{"self":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/698"}],"collection":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/comments?post=698"}],"version-history":[{"count":16,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/698\/revisions"}],"predecessor-version":[{"id":4334,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/698\/revisions\/4334"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media\/663"}],"wp:attachment":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media?parent=698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/categories?post=698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/tags?post=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}