简体   繁体   English

Azure 函数消费超时告警

[英]Azure Functions Consumption Timeout Alert

How do you create an alert for when an Azure Function on the Consumption plan has timed out after 10 minutes?当消费计划中的 Azure Function 在 10 分钟后超时时,如何创建警报? There used to be a signal in Application Insights called "Failures" that indicated this but it looks like Microsoft removed it. Application Insights 中曾经有一个名为“失败”的信号表明了这一点,但看起来 Microsoft 已将其删除。 My old signal was whenever the total count of Failures was > 0 it would send me an email, but I don't see anything comparable anymore.我的旧信号是,每当失败总数 > 0 时,它会向我发送 email,但我再也看不到任何可比性了。

Open your application insights, click on Alerts and Click on Create alert.打开您的应用程序洞察,单击警报并单击创建警报。 There you can select Custom Log Search in condition as below:在那里你可以 select 自定义日志搜索条件如下:

在此处输入图像描述

Then you use the below query:然后你使用下面的查询:

requests  
| where duration > 1000

在此处输入图像描述

Then you can create alert over there, This is one way of getting alerts using Time Duration.然后你可以在那里创建警报,这是使用持续时间获取警报的一种方法。

在此处输入图像描述

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

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