Skip to content

Commit 33cb4a4

Browse files
authored
Fix the bug that alert are ignored in multiple notify types (#85)
1 parent e3a6189 commit 33cb4a4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

analyzer-alert/src/main/java/cloud/erda/analyzer/alert/functions/AlertEventGroupFunction.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public class AlertEventGroupFunction implements KeySelector<AlertEvent, String>
3131

3232
@Override
3333
public String getKey(AlertEvent value) throws Exception {
34-
return value.getAlertGroup() + value.getAlertNotify().getId();
34+
return value.getAlertGroup() +
35+
"_alert_notify_id_" + value.getAlertNotify().getId() +
36+
"_notify_template_id_" + value.getAlertNotifyTemplate().getId();
3537
}
3638
}

erda.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ envs:
1818
PARALLELISM_DEFAULT: "2"
1919
TASK_MANAGER_MEM_PREALLOCATION: "true"
2020
TASK_MANAGER_NUMBER_OF_TASK_SLOTS: "2"
21-
TASK_MANAGER_MEMORY_MANAGED_FRACTION: "0.3"
21+
TASK_MANAGER_MEMORY_MANAGED_FRACTION: "0.1"
2222
TASK_MANAGER_MEMORY_JVM_METASPACE_SIZE: "256M"
2323
TASK_MANAGER_JVM_EXIT_OOM: "true"
2424
# FLINK_ENV_JAVA_OPTS_TM: "-XX:+UseG1GC -XX:+TraceClassLoading -XX:+TraceClassUnloading -XX:+PrintGC -XX:+PrintGCDetails"

0 commit comments

Comments
 (0)