You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@hertzbeat.apache.org by sh...@apache.org on 2025/05/09 05:15:50 UTC
(hertzbeat) branch master updated: [bugfix] fix the calculator expr exist not work (#3314)
This is an automated email from the ASF dual-hosted git repository.
shenghang 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 d0b7e38537 [bugfix] fix the calculator expr exist not work (#3314)
d0b7e38537 is described below
commit d0b7e385371d5cb21adf5dbd6e77329cbe842c4d
Author: tomsun28 <to...@outlook.com>
AuthorDate: Fri May 9 13:15:46 2025 +0800
[bugfix] fix the calculator expr exist not work (#3314)
Signed-off-by: tomsun28 <to...@outlook.com>
Co-authored-by: shown <yu...@gmail.com>
---
.../org/apache/hertzbeat/alert/calculate/RealTimeAlertCalculator.java | 4 ++--
hertzbeat-manager/src/main/resources/define/app-website.yml | 4 ++--
script/helm/hertzbeat-helm-chart | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
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 0db6bb15cc..8c920a8482 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
@@ -220,11 +220,11 @@ public class RealTimeAlertCalculator {
fingerPrints.putAll(commonFingerPrints);
for (int index = 0; index < valueRow.getColumnsList().size(); index++) {
String valueStr = valueRow.getColumns(index);
+ final CollectRep.Field field = fields.get(index);
if (CommonConstants.NULL_VALUE.equals(valueStr)) {
+ fieldValueMap.put(field.getName(), null);
continue;
}
-
- final CollectRep.Field field = fields.get(index);
final int fieldType = field.getType();
if (fieldType == CommonConstants.TYPE_NUMBER) {
diff --git a/hertzbeat-manager/src/main/resources/define/app-website.yml b/hertzbeat-manager/src/main/resources/define/app-website.yml
index fd19bf25bd..98568db230 100644
--- a/hertzbeat-manager/src/main/resources/define/app-website.yml
+++ b/hertzbeat-manager/src/main/resources/define/app-website.yml
@@ -207,12 +207,12 @@ metrics:
# collect metrics content
fields:
# field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field
- - field: Content-Type
+ - field: content_type
type: 1
i18n:
zh-CN: Content Type
en-US: Content Type
- - field: Content-Length
+ - field: content_length
type: 1
i18n:
zh-CN: 响应内容长度
diff --git a/script/helm/hertzbeat-helm-chart b/script/helm/hertzbeat-helm-chart
index bdb57c002b..2fa5905e9c 160000
--- a/script/helm/hertzbeat-helm-chart
+++ b/script/helm/hertzbeat-helm-chart
@@ -1 +1 @@
-Subproject commit bdb57c002b90d4c409daddcab5ceb9560ce871a1
+Subproject commit 2fa5905e9c3cebcf96c1d98b9a6ffd5f8bab0a90
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org