rty813 opened a new issue, #3756: URL: https://github.com/apache/hertzbeat/issues/3756
### Is there an existing issue for this? - [x] I have searched the existing issues ### Current Behavior I set up GroupReduce with the following configuration: <img width="1085" height="126" alt="Image" src="https://github.com/user-attachments/assets/2912f812-0277-4075-b6c4-d2b68a1b5262" /> Then, I called the alarm through webhook, but it did not trigger. After disabling GroupReduce, the alarm can be triggered successfully. Webhook request body: ``` { "labels": { "alertname": "test", "severity": "critical", "instance": "402233028464644" }, "content": "test", "status": "firing", "triggerTimes": 1 } ``` ### Expected Behavior The alarm can be successfully triggered even when GroupReduce is enabled ### Steps To Reproduce 1. Enable GroupReduce 2. Call the webhook 3. Wait 30 seconds, and no alert is triggered ### Environment ```markdown HertzBeat version(s):v1.7.2 ``` ### Debug logs There is an error log, but I don't know if it is related ``` 2025-09-08 17:50:37.725 [alarm-group-calculate-0] ERROR org.apache.hertzbeat.alert.reduce.AlarmGroupReduce Line:121 - Check alarm groups calculate has exception.: Cannot invoke "java.util.Map.size()" because "m" is null java.lang.NullPointerException: Cannot invoke "java.util.Map.size()" because "m" is null at java.base/java.util.HashMap.putMapEntries(HashMap.java:495) at java.base/java.util.HashMap.<init>(HashMap.java:484) at org.apache.hertzbeat.alert.reduce.AlarmGroupReduce.extractCommonAnnotations(AlarmGroupReduce.java:303) at org.apache.hertzbeat.alert.reduce.AlarmGroupReduce.sendGroupAlert(AlarmGroupReduce.java:233) at org.apache.hertzbeat.alert.reduce.AlarmGroupReduce.lambda$startCheckAndSendGroups$1(AlarmGroupReduce.java:115) at java.base/java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1603) at org.apache.hertzbeat.alert.reduce.AlarmGroupReduce.lambda$startCheckAndSendGroups$2(AlarmGroupReduce.java:113) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) ``` ### Anything else? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
