hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[Feature] 能不能查历史的告警记录?

Open dovewi opened this issue 2 months ago • 2 comments

Feature Request

现在的告警数据结构,我看新增告警都是放在同一条数据里面,这样也就导致我要看历史的告警看不到。 现在的需求是想看到历史每个监控阈值有哪些天哪些设备有告警的就搞不了,不利于排查复盘问题。能不能把告警的日历搞出来,每天哪些阈值和监控项触发了告警

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

dovewi avatar Sep 04 '26 07:09 dovewi

I will take this issue. Please assign it to me.

The current alert data structure seems to overwrite alerts instead of storing them separately. This makes it hard to view historical alerts. I would first look at how alerts are currently stored in the database. A possible fix is to adjust the schema to store each alert with a timestamp. This would allow us to retrieve historical alerts. I will also consider adding a calendar view to display which thresholds and devices triggered alerts on specific days.

modelpath-dev avatar Sep 10 '26 21:09 modelpath-dev

I am starting to look into how alerts are stored in the database. I will check if we can adjust the schema to store each alert with a timestamp. This should help in retrieving historical alerts. I will update once I have more information.

modelpath-dev avatar Sep 13 '26 08:09 modelpath-dev