Azure VM监视默认运行状况条件警报通知

时间:2018-12-14 12:17:17

标签: performance azure virtual-machine alert monitoring

Azure的新手,只是想了解在违反默认VM运行状况标准(例如,Disk Avg. Disk sec/Read时)是否能够收到诸如电子邮件,松弛消息或Webhook推送之类的通知。

下面的链接显示All health criteria are pre-configured to alert when the unhealthy condition is met

https://docs.microsoft.com/en-us/azure/azure-monitor/insights/vminsights-health#alerting-and-alert-management

enter image description here 但是如何配置操作组/外部通知。

我尝试了下面的链接中提到的解决方案,该解决方案告诉enable default notificationSettings,但运气不佳/没有电子邮件。

https://azure.microsoft.com/en-us/blog/understanding-health-criteria-in-azure-monitor-for-vms/

{
    "nextLink": null,
    "value": [
        {
            "etag": null,
            "id": "/subscriptions/SUB_ID/resourcegroups/RG/providers/Microsoft.Compute/virtualMachines/SonarQube/providers/Microsoft.WorkloadMonitor/notificationSettings/default",
            "name": "notificationSettings/default",
            "properties": {
                "actionGroupResourceIds": [
                    "/subscriptions/SUB_ID/resourceGroups/RG/providers/microsoft.insights/actionGroups/Webhook_gateway",
                    "/subscriptions/SUB_ID/resourceGroups/RG/providers/microsoft.insights/actionGroups/Slack%20Webhook",
                    "/subscriptions/SUB_ID/resourceGroups/RG/providers/microsoft.insights/actionGroups/VM%20monitoring"
                ]
            },
            "type": "Microsoft.WorkloadMonitor/virtualMachines/notificationSettings"
        }
    ]
}

1 个答案:

答案 0 :(得分:0)

Azure Monitor中的经典指标警报提供了一种方法,当您的指标之一超过阈值时得到通知。 使用此功能,您可以将通知发送到您的电子邮件地址,并在警报触发时呼叫网络钩子。

请参阅以下文档:

Create, view, and manage classic metric alerts using Azure Monitor

Have a classic metric alert notify a non-Azure system using a webhook