This is an automated email from the ASF dual-hosted git repository.
gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new ba173acc09 [bugfix] correct instance filtering regex in
RealTimeAlertCalculator (#3269)
ba173acc09 is described below
commit ba173acc090f8f4450f5e756e7f74e36c9c84313
Author: Yang Chen <[email protected]>
AuthorDate: Sat Apr 19 10:10:11 2025 +0800
[bugfix] correct instance filtering regex in RealTimeAlertCalculator (#3269)
Co-authored-by: tomsun28 <[email protected]>
---
.../org/apache/hertzbeat/alert/calculate/RealTimeAlertCalculator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hertzbeat-alerter/src/main/java/org/apache/hertzbeat/alert/calculate/RealTimeAlertCalculator.java
b/hertzbeat-alerter/src/main/java/org/apache/hertzbeat/alert/calculate/RealTimeAlertCalculator.java
index 40a23a75c9..ac08a63d4b 100644
---
a/hertzbeat-alerter/src/main/java/org/apache/hertzbeat/alert/calculate/RealTimeAlertCalculator.java
+++
b/hertzbeat-alerter/src/main/java/org/apache/hertzbeat/alert/calculate/RealTimeAlertCalculator.java
@@ -73,7 +73,7 @@ public class RealTimeAlertCalculator {
private static final Pattern APP_PATTERN =
Pattern.compile("equals\\(__app__,\"([^\"]+)\"\\)");
private static final Pattern AVAILABLE_PATTERN =
Pattern.compile("equals\\(__available__,\"([^\"]+)\"\\)");
private static final Pattern LABEL_PATTERN =
Pattern.compile("contains\\(__labels__,\\s*\"([^\"]+)\"\\)");
- private static final Pattern INSTANCE_PATTERN =
Pattern.compile("equals\\(__instance__,\"(\\d+)\"\\)");
+ private static final Pattern INSTANCE_PATTERN =
Pattern.compile("equals\\(__instance__,\\s\"(\\d+)\"\\)");
private static final Pattern METRICS_PATTERN =
Pattern.compile("equals\\(__metrics__,\"([^\"]+)\"\\)");
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]