apache / apache/hertzbeat

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

Open
#2,582 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

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](https://github.com/user-attachments/assets/e56d5bcb-fbd9-4439-8252-6e8972a24564)

I want the content of the recovery notification to be:
```
Alert Resolved Notice: 服务器连接异常, test.endpoint无法连接
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the alert and recovery notifications described in the issue, then trace how each message is assembled. Check whether recovery notifications can access the original alert content rather than only the rule expression. Done means the requested resolved message is supported and covered by a test, or the limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.