{"id":16017,"date":"2020-08-10T04:49:33","date_gmt":"2020-08-10T04:49:33","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=16017"},"modified":"2020-08-27T09:18:37","modified_gmt":"2020-08-27T09:18:37","slug":"solution-for-monitoring-with-metric-alerts","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/","title":{"rendered":"Solution for Monitoring with Metric Alerts"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-304-microsoft-azure-architect-design\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to AZ-304 Tutorials<\/a><\/p>\n\n\n\n<p>In this tutorial, we will learn about creating and monitoring metric alerts based on the completion status of runbooks.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Creating alert<\/strong><\/h4>\n\n\n\n<p>Alerts gives access to define a condition for monitoring for and an action to take when that condition is met.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, in the Azure portal, navigate to your Automation account.&nbsp;<\/li><li>Then, Under Monitoring, select Alerts and click + New Alert Rule. As the scope for the target is already defined to your Automation account.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Configuring alert criteria<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, click + Add criteria. Select Metrics for the Signal type, and choose TotalJobs from the table.<\/li><li>Then, the <strong>Configure signal logic page<\/strong> is where you define the logic that triggers the alert. Under the historical graph, you are given with two dimensions, Runbook Name and Status. However, the <strong>dimensions<\/strong> are different properties for a metric that can be used to filter results. And, for Runbook Name, select the <strong>runbook<\/strong> you want to alert on or leave blank to alert on all runbooks. Lastly, for <strong>Status<\/strong>, select a status from the drop-down you want to monitor.<\/li><li>Then, if you want to alert on a status or runbook that isn&#8217;t shown in the dropdown, click the + next to the dimension. However, this action opens a dialog that allows you to enter in a custom value, which hasn&#8217;t emitted for that dimension recently. If you enter a value that doesn&#8217;t exist for a property your alert won&#8217;t be triggered.<\/li><li>After that, under<strong> Alert logic<\/strong>, define the condition and threshold for your alert.<\/li><li>Lastly, under <strong>Evaluated based<\/strong> on, select the timespan for the query and how often you want that query run. And after finishing click done.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Defining alert details<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, under 2. <strong>define the alert details<\/strong>, by giving the alert a friendly name and description. Set the Severity to match your alert condition. As there are five severities ranging from 0 to 5. The alerts are treated the same independent of the severity, so that\u00a0 you can match the severity to match your business logic.<\/li><li>Then, at the bottom of the section, there is a button that allows you to enable the rule upon completion. By default rules are enabled at creation. If you select No, you can create the alert and it&#8217;s created in a Disabled state.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-architect-design-az-304-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-304-practice-tests-8.png\" alt=\"AZ-304 Practice tests\" class=\"wp-image-18278\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-304-practice-tests-8.png 961w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-304-practice-tests-8-750x117.png 750w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Defining the action to take<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, under 3. <strong>Define action group<\/strong>, click + New action group. However, an action group is a group of actions that you can use across more than one alert.&nbsp;<\/li><li>Secondly, in the Action group name box, give it a friendly name and short name. However, the short name is used in place of a full action group name when notifications are sent using this group.<\/li><li>Then, in the Actions section under ACTION TYPE, select Email\/SMS\/Push\/Voice.<\/li><li>Fourthly, on the Email\/SMS\/Push\/Voice page, give it a name. Check the Email checkbox and enter in a valid email address to be used.<\/li><li>Then, click OK on the Email\/SMS\/Push\/Voice page to close it and click OK to close the Add action group page. The Name specified in this page is saved as the ACTION NAME.<\/li><li>Lastly, when complete, click Save. This action creates the rule that alerts you when a runbook has completed with a certain status.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Receiving notification<\/strong><\/h4>\n\n\n\n<p>When the alert criteria is met, the action group runs the action that is defined. And, once the metric is no longer outside of the threshold defined, the alert is deactivated and the action group runs the action defined. If an email action type is selected, a resolution email is sent stating it has been resolved.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-architect-design-az-304-practice-exam\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/Az-304-online-course-17.png\" alt=\"Metric alerts concepts in AZ-304 online course\" class=\"wp-image-16015\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/Az-304-online-course-17.png 961w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/Az-304-online-course-17-750x117.png 750w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference: <\/strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/automation\/automation-alert-metric\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Documentation<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-304-microsoft-azure-architect-design\/\" target=\"_blank\" rel=\"noreferrer noopener\"><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-304-microsoft-azure-architect-design\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to AZ-304 Tutorials<\/a><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go back to AZ-304 Tutorials In this tutorial, we will learn about creating and monitoring metric alerts based on the completion status of runbooks. Creating alert Alerts gives access to define a condition for monitoring for and an action to take when that condition is met. Firstly, in the Azure portal, navigate to your Automation&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-16017","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Solution for Monitoring with Metric Alerts | Microsoft Azure AZ-304 Tutorials<\/title>\n<meta name=\"description\" content=\"Increase your skills by learning about process of Monitoring with Metric Alerts using Microsoft Azure AZ-304 online course and practice exam Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Solution for Monitoring with Metric Alerts | Microsoft Azure AZ-304 Tutorials\" \/>\n<meta property=\"og:description\" content=\"Increase your skills by learning about process of Monitoring with Metric Alerts using Microsoft Azure AZ-304 online course and practice exam Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-27T09:18:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-304-practice-tests-8.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/\",\"name\":\"Solution for Monitoring with Metric Alerts | Microsoft Azure AZ-304 Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-08-10T04:49:33+00:00\",\"dateModified\":\"2020-08-27T09:18:37+00:00\",\"description\":\"Increase your skills by learning about process of Monitoring with Metric Alerts using Microsoft Azure AZ-304 online course and practice exam Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Solution for Monitoring with Metric Alerts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Solution for Monitoring with Metric Alerts | Microsoft Azure AZ-304 Tutorials","description":"Increase your skills by learning about process of Monitoring with Metric Alerts using Microsoft Azure AZ-304 online course and practice exam Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/","og_locale":"en_US","og_type":"article","og_title":"Solution for Monitoring with Metric Alerts | Microsoft Azure AZ-304 Tutorials","og_description":"Increase your skills by learning about process of Monitoring with Metric Alerts using Microsoft Azure AZ-304 online course and practice exam Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-08-27T09:18:37+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-304-practice-tests-8.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/","name":"Solution for Monitoring with Metric Alerts | Microsoft Azure AZ-304 Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-08-10T04:49:33+00:00","dateModified":"2020-08-27T09:18:37+00:00","description":"Increase your skills by learning about process of Monitoring with Metric Alerts using Microsoft Azure AZ-304 online course and practice exam Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/solution-for-monitoring-with-metric-alerts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Solution for Monitoring with Metric Alerts"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/16017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=16017"}],"version-history":[{"count":3,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/16017\/revisions"}],"predecessor-version":[{"id":18303,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/16017\/revisions\/18303"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=16017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=16017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=16017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}