官术网_书友最值得收藏!

Creating an alert

To create an alert, perform the following steps:

  1. From the Azure Monitor overview blade, in the left-hand menu, select Alerts. You can also go to the alerts settings by clicking on Create alert in order to create an alert directly.
  2. In the Alerts blade, click on + New alert rule in the top menu:
Creating a new alert
  1. The Create rule blade is displayed. Here, you can create the rule and action groups. To create a new rule, you need to first select the resource. Click on the Select button under the RESOURCE section:
Creating a new rule
  1. In the next blade, you can filter by the subscription and resource type. Select Virtual machines:
Filtering by subscription and resource type
  1. Select the VM that we created in the previous chapter from the list and click Done.
  2. Now that we have a resource selected, we're going to set up the condition. Click on Add condition.
  3. The condition blade is open, and so we can filter by a certain signal. Select Percentage CPU and click Done:
Filtering on a signal
  1. Next, you can set the alert logic for this alert. You can choose multiple operators, set the aggregation type, and set the threshold value for this alert. Set the following:
    • Operator: Greater than
    • Aggregation type: Average
    • Threshold Value: 90%
  2. Leave Evaluated based on with its default settings.
  1. This alert will notify you when the CPU of the virtual machines is greater than 90% over a five minute period of time. Azure Monitor will check this every minute:
Setting condition values
  1. Click on Done to create this condition.
  2. Now, we have to create an action group to send the alert to. This is then responsible for handling the alert and taking further action on it. The action group that you create here can be reused across other alerts as well. So, in our case, we will create an email action group that will send out an email to a certain email address. After its creation, you can add this existing action group to other alerts. Under Action group, select the Create new button.
  3. In the Action Group blade, add the following settings:
    • Action group name: Send email
    • Short name: email
    • Subscription: Select the subscription where the VM is created, as well
    • Resource group: Select Default-ActivitiyLogAlerts (to be created)
  4. Then, we have to provide the actual action. Add the following values:
    • Action name: email
    • Action type: Email/SMS/Push/Voice
  1. Then, select Edit details and select the Email checkbox. Provide an email address and click on the OK button:
Creating an action group
  1. Click on OK again.
  1. Finally, you have to specify an alert name, set the severity level of the alert, and click on Create alert rule:
Alert settings

We have now created an alert and an action group that will alert a user via email when the CPU goes over 90%. In the next section, we're going to configure diagnostic settings on resources.

主站蜘蛛池模板: 石柱| 南雄市| 云和县| 黑龙江省| 尉犁县| 莒南县| 搜索| 兰考县| 刚察县| 泰宁县| 蓝田县| 金山区| 通城县| 都兰县| 镇江市| 浏阳市| 南陵县| 洛浦县| 聂拉木县| 孟州市| 崇阳县| 丰顺县| 青川县| 中山市| 洛扎县| 册亨县| 阜城县| 武宣县| 德格县| 大丰市| 麦盖提县| 滨州市| 云龙县| 滁州市| 九台市| 桂东县| 浮山县| 勃利县| 疏勒县| 涟源市| 南皮县|