Azure Application Insights警报仅工作一次 [英] Azure Application Insights Alerts work only once

查看:78
本文介绍了Azure Application Insights警报仅工作一次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试Azure Application Insights警报功能.似乎是越野车,或者我不知道如何使用它.

I am testing Azure Application Insights alert functionality. It seems to be either buggy or I don't know how to use it.

如果我基于服务器异常"度量标准创建了一个新警报,则该警报似乎可以一次运行,然后再也无法运行.一旦触发,它似乎会进入活动"状态,在该状态下会有一个带!的橙色三角形.参见下图.我创建了一个尚未触发的新图标,如图所示,它有一个带勾号的绿色圆圈.

If I create a new alert, based on the metric 'Server Exceptions', it seems to work once then never again. Once it fires, it seems to go into a state of 'Active' where there is an orange triangle with an !. See the image below. I created a new one, that I haven't triggered, and as can be seen in the image it has a green circle with a tick.

这对我来说意味着,一个警报只有在确认"该警报后才会再次触发,这不是一个坏主意,但我看不出该怎么做.

This sort of implies to me that an alert won't fire again until one 'acknowledges' the alert, which is not a bad idea, but I can't see how to do that.

我刚刚尝试按照建议的方式使用异常率",但是我认为触发警报的最低阈值是在5分钟内平均每秒出现1个异常.

I have just tried to use the 'Exception Rate' as suggested, but I think the minimum threshold to fire the alert would be an average of 1 exception per second over a 5 minute period.

我必须说,我的用例没有得到处理似乎很奇怪.我有一个轻量级的Web API服务,它是如此简单,它永远不会失败,但它可能会失败,因此,如果发生异常,我想立即收到警报.

I must say it seems strange that my use-case isn't handled. I have a light weight Web API service that is so simple it should never fail but it could, and as a result if an exception occurs I want to receive an alert straight away.

推荐答案

应该解决警报,并且当不再满足警报条件时,状态应恢复为绿色. 使用计数"指标很难做到这一点,因为它们会不断上升,几乎永远不会下降.这意味着,一旦触发,警报将无法解决,因为该指标的值始终保持在阈值之上.

Alert is supposed to resolve and state is supposed to get back to green when the condition of the alert is no longer fulfilled. This is exceptionally hard to achieve with "Count" metrics because they go up and up and almost never down. It means that, once fired, the alert won't resolve because the value of the metric stays over the threshold all the time.

您可以尝试改为针对费率"指标设置警报,并且应该看到,当费率"在您设置的限制范围内时,状态将恢复为绿色.

You can try to set an alert on the "Rate" metric instead and you should see that the state is returning to green when the "Rate" is within the limits you set.

这篇关于Azure Application Insights警报仅工作一次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆