简体   繁体   English

Azure负载均衡器警报规则

[英]Azure Load Balancer Alert rules

On Azure portal, On a load balancer object, I see that there is a way to enable diagnostics and create alerts that will be sent to the audit log. 在Azure门户的负载平衡器对象上,我看到有一种方法可以启用诊断并创建将发送到审核日志的警报。 How can I then send these alerts to a Webhook ? 然后如何将这些警报发送到Webhook?

Thanks, 谢谢,

For many resource monitoring scenarios, you would create an alert rule and wire up your webhook there. 对于许多资源监视方案,您将创建警报规则并在此处连接Webhook。 This is not available though for an Azure Load Balancer. 尽管这对于Azure负载平衡器不可用。

As an alternative, I would suggest creating an Azure Function that gets triggered when an alert is written to the blob storage account you selected for the load balancer diagnostics. 作为一种替代方法,我建议创建一个Azure函数 ,该警报将警报写入您为负载均衡器诊断选择的Blob存储帐户时触发。 Inside the Azure Function, add your code to invoke the webhook. 在Azure函数内部,添加代码以调用Webhook。 An example of how to bind an Azure Function to your blob storage account is available here . 此处提供有关如何将Azure Function绑定到您的Blob存储帐户的示例。

For the path setting, you can monitor the insights-logs-loadbalanceralertevent container. 对于路径设置,您可以监视insights-logs-loadbalanceralertevent容器。 This will trigger your function every time an alert is recorded. 每当记录警报时,这将触发您的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM