Skip to content

fix: check single-alert labels in notification policy matching#3943

Closed
love12yadav wants to merge 3 commits intoapache:masterfrom
love12yadav:main
Closed

fix: check single-alert labels in notification policy matching#3943
love12yadav wants to merge 3 commits intoapache:masterfrom
love12yadav:main

Conversation

@love12yadav
Copy link

Problem
Notification policies with custom labels (e.g., department:algorithm) never triggered. Only the "forward‑all" policy worked.
Reason: The matching logic only checked GroupAlert.commonLabels, while the label lived in SingleAlert.labels.

Solution
Updated NoticeConfigServiceImpl.getReceiverFilterRule() to also check each SingleAlert’s labels inside the group. Now label‑based policies fire correctly.

… and multiple credentials (#3925)

Signed-off-by: Love yadav <155807335+love12yadav@users.noreply.github.com>
…rg/apache/hertzbeat/collector/collect/common/ssh/SshHelper.java

Signed-off-by: Love yadav <155807335+love12yadav@users.noreply.github.com>
@love12yadav love12yadav closed this Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant