【问题标题】:Azure VM monitoring default health criteria alert notificationAzure VM 监视默认运行状况标准警报通知
【发布时间】:2019-05-15 17:15:11
【问题描述】:

刚接触 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

但是如何配置操作组/外部通知。

我尝试了下面链接中提到的解决方案,该解决方案告诉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"
        }
    ]
}

【问题讨论】:

  • 有什么更新吗?这有帮助吗?
  • 并非如此。我真正想要的是能够收到inSight 附带的默认健康标准通知。我知道如何使用这些指标并使用操作组创建警报。但是,当已经存在一些评估 VM 健康状况的规则时,为什么要创建警报(经典与否)

标签: performance azure virtual-machine alert monitoring


【解决方案1】:

Azure Monitor 中的经典指标警报提供了一种在您的某个指标超过阈值时获得通知的方法。 使用它,您可以向您的电子邮件地址发送通知,并在警报触发时调用 webhook。

参考这些文档:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-12-08
    • 2021-03-31
    • 1970-01-01
    • 1970-01-01
    • 2022-06-20
    • 2021-06-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多