diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/BulletinServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/BulletinServiceImpl.java index a631923c799..9738bd4fd88 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/BulletinServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/BulletinServiceImpl.java @@ -211,7 +211,7 @@ public BulletinMetricsData buildBulletinMetricsData(BulletinMetricsData.Bulletin for (int i = 0; i < fieldList.size(); i++) { fieldList.get(i).setValue(valueRow.getColumns(i)); } - return fieldList; + return fieldList.stream().filter(field -> fields.contains(field.getKey())).toList(); }) .toList(); } else {