apache / apache/hertzbeat

[BUG] Grouping alerts would replicate one without custom labels.

Open
#3,789 2 comments 0 reactions 1 assignee Claimed by @Duansg View on GitHub
bug
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Current Behavior

When using grouping, there may be throws multiple alerts in one incident.
like this image.

Image

if I group alerts with custom labels, the label would not be assigned to some alerts. That can cause grouping failed and send so many noisy messages if we have notification rules.

### Expected Behavior

When using grouping, there should be only one alert in one incident. This helps prevent receiving a large number of duplicate alert messages.

### Steps To Reproduce

1. Add some alerts with the same custom label.
2. Add grouping rule with the custom label.
3. Add threshold as normal.
4. Trigger the alart.
5. Turn to alarms page, then we can find multiple alerts here.

### Environment

```markdown
HertzBeat version(s):
```

### Debug logs

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.