[Question] Is the logic of PING connectivity reasonable?
Question
当前逻辑
ping 连通时返回ping耗时,未连通、异常时没有返回ping耗时。相关代码
问题
ping告警只能根据ping耗时触发,ping采集失败和异常情况没有ping 耗时。不能触发告警,而发现ping异常、超时正是ping检测的目的。是比ping耗时变长更严重的问题
建议
方案一
ping采集发生异常、超时将ping耗时赋值为Long最大值,表示无穷大,可触发告警
方案二
将采集失败、超时等异常情况添加到PING连通性的告警表达式配置中,可配置发生异常时告警
hi 谢谢反馈
ping告警只能根据ping耗时触发,ping采集失败和异常情况没有ping 耗时。不能触发告警,而发现ping异常、超时正是ping检测的目的。是比ping耗时变长更严重的问题
这里如果是ping采集异常,联通失败或者超时,系统会有个[可用性告警],这个对所有监控类型都会有,是内置的,不需要设置阈值来触发。[可用性告警]对监控来说,就是优先级为0的可用性指标采集失败时,自动发出,对应的监控状态也会变更
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
hi thanks for the feedback
The ping alarm can only be triggered based on the ping time consumption, and the ping collection failure and abnormal conditions do not have the ping time consumption. An alarm cannot be triggered, but finding ping exceptions and timeouts is the purpose of ping detection. It is a more serious problem than the longer ping time
Here, if the ping collection is abnormal, China Unicom fails or times out, the system will have an [availability alarm], which will be available for all monitoring types, and it is built-in, and there is no need to set a threshold to trigger it. [Availability alarm] For monitoring, when the collection of availability indicators with a priority of 0 fails, it will be automatically issued, and the corresponding monitoring status will also change
Since the alerting rework in 1.7, availability alert rules are no longer created automatically. To be alerted when ping fails or times out, create a threshold rule in Alert Settings, choose Ping > Availability (this generates the expression equals(__app__,"ping") && equals(__available__,"down")), and bind it to your monitors. Closing as answered; please reopen if this does not cover your case.