hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[BUG] <SiteMap threshold alarm error>

Open Kylin-Guo opened this issue 1 year ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

upgrade 到 v1.5.0 之后,在日志中发现以下报错,同时该告警无法触发 dd3e3da4378d613ee93459d499bbb4c

阈值告警配置: 18fbd960f0579ab8e05d0b9656fd8c0

注:在 v1.4.3 版本及之前是正常的,查看过运行 v1.4.4 版本时的日志都有此报错,但当时没有发现。

Expected Behavior

No response

Steps To Reproduce

No response

Environment

HertzBeat version(s):v1.5.0

Debug logs

2024-02-21 16:47:33 [351638240738816-api-summary-3517] INFO org.dromara.hertzbeat.collector.dispatch.MetricsCollect - [Collect Success, Run 259ms, All 264ms]. 2024-02-21 16:47:33 [351638240652800-api-summary-3517] INFO org.dromara.hertzbeat.collector.dispatch.MetricsCollect - [Collect Success, Run 262ms, All 267ms]. 2024-02-21 16:47:34 [351638241353216-fullsite-summary-4487] INFO org.dromara.hertzbeat.collector.dispatch.MetricsCollect - [Collect Success, Run 292ms, All 292ms]. 2024-02-21 16:47:34 [351638241439232-fullsite-summary-4488] INFO org.dromara.hertzbeat.collector.dispatch.MetricsCollect - [Collect Success, Run 291ms, All 292ms]. 2024-02-21 16:47:34 [351638241299968-fullsite-summary-4487] INFO org.dromara.hertzbeat.collector.dispatch.MetricsCollect - [Collect Success, Run 292ms, All 292ms]. 2024-02-21 16:47:34 [351638241390080-fullsite-summary-4488] INFO org.dromara.hertzbeat.collector.dispatch.MetricsCollect - [Collect Success, Run 296ms, All 297ms]. 2024-02-21 16:47:34 [alerter-worker-5] ERROR org.dromara.hertzbeat.alert.calculate.CalculateAlarm - Alert Define Rule: !matches(statusCode,"^2[0-9]+") && !contains(errorMsg,"timed out") && !contains(errorMsg,"Connection reset") && !contains(errorMsg,"unknown host") Run Error: metrics value not contains expr field: errorMsg. 2024-02-21 16:47:34 [alerter-worker-4] ERROR org.dromara.hertzbeat.alert.calculate.CalculateAlarm - Alert Define Rule: !matches(statusCode,"^2[0-9]+") && !contains(errorMsg,"timed out") && !contains(errorMsg,"Connection reset") && !contains(errorMsg,"unknown host") Run Error: metrics value not contains expr field: errorMsg. 2024-02-21 16:47:34 [alerter-worker-3] ERROR org.dromara.hertzbeat.alert.calculate.CalculateAlarm - Alert Define Rule: !matches(statusCode,"^2[0-9]+") && !contains(errorMsg,"timed out") && !contains(errorMsg,"Connection reset") && !contains(errorMsg,"unknown host") Run Error: metrics value not contains expr field: errorMsg. 2024-02-21 16:47:34 [alerter-worker-5] ERROR org.dromara.hertzbeat.alert.calculate.CalculateAlarm - Alert Define Rule: !matches(statusCode,"^2[0-9]+") && !contains(errorMsg,"timed out") && !contains(errorMsg,"Connection reset") && !contains(errorMsg,"unknown host") Run Error: metrics value not contains expr field: errorMsg. 2024-02-21 16:47:34 [alerter-worker-4] ERROR org.dromara.hertzbeat.alert.calculate.CalculateAlarm - Alert Define Rule: !matches(statusCode,"^2[0-9]+") && !contains(errorMsg,"timed out") && !contains(errorMsg,"Connection reset") && !contains(errorMsg,"unknown host") Run Error: metrics value not contains expr field: errorMsg. 2024-02-21 16:47:34 [alerter-worker-3] ERROR org.dromara.hertzbeat.alert.calculate.CalculateAlarm - Alert Define Rule: !matches(statusCode,"^2[0-9]+") && !contains(errorMsg,"timed out") && !contains(errorMsg,"Connection reset") && !contains(errorMsg,"unknown host") Run Error: metrics value not contains expr field: errorMsg. 2024-02-21 16:47:34 [alerter-worker-5] ERROR org.dromara.hertzbeat.alert.calculate.CalculateAlarm - Alert Define Rule: !matches(statusCode,"^2[0-9]+") && !contains(errorMsg,"timed out") && !contains(errorMsg,"Connection reset") && !contains(errorMsg,"unknown host") Run Error: metrics value not contains expr field: errorMsg. 2024-02-21 16:47:34 [alerter-worker-5] ERROR org.dromara.hertzbeat.alert.calculate.CalculateAlarm - Alert Define Rule: !matches(statusCode,"^2[0-9]+") && !contains(errorMsg,"timed out") && !contains(errorMsg,"Connection reset") && !contains(errorMsg,"unknown host") Run Error: metrics value not contains expr field: errorMsg.

Anything else?

No response

Kylin-Guo avatar Feb 21 '24 09:02 Kylin-Guo

补充说明:

  • 如果用 Firefox 浏览器打开 HertzBeat,然后点击编辑此异常阈值,会导致整个页面卡死,刷新页面也无效,只能重新打开网页

  • 但在 Chrome 和 Edge 浏览器中打开 HertzBeat,然后点击编辑此异常阈值,则一切正常

或许各位开发大大会有点头绪?

Kylin-Guo avatar Feb 21 '24 09:02 Kylin-Guo

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Additional instructions:

  • If you open HertzBeat with the Firefox browser and then click to edit this exception threshold, the entire page will freeze and refreshing the page will have no effect. You can only reopen the web page.

  • But when I open HertzBeat in Chrome and Edge browsers and click Edit this exception threshold, everything works fine

Maybe the developers will have some clues?

hertzbeat avatar Feb 21 '24 09:02 hertzbeat

HertzBeat V1.6.0 报错有所不同,如下:

图片

Kylin-Guo avatar Jun 18 '24 03:06 Kylin-Guo