apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.64k stars 977 forks source link

[Question] can we modify the content of the recovered alert? #2582

Open loong95 opened 2 months ago

loong95 commented 2 months ago

I have set up some alert rules, and they can correctly trigger the start and recovery notifications. However, the content of the recovery notifications always shows the rule expression. I would like to change it to display the content from the start of the alert instead. Is this possible?

image

I want the content of the recovery notification to be:

Alert Resolved Notice: 服务器连接异常, test.endpoint无法连接
tomsun28 commented 2 months ago

hi, can not currently.

loong95 commented 2 months ago

Hi, @tomsun28. I reviewed the code and found that only a small modification is needed to use the description from the starting alert as the description for the recovered alert. May I make this change and submit a PR?

tomsun28 commented 2 months ago

@loong95 hi welcome 👍