Repository: didi/KnowStreaming (language: java)

Issue:
对外暴露指标部分字段信息为空
/metrics/prometheus


比如LSO这个Topic名称为空


<img width="998" alt="image" src="https://github.com/didi/KnowStreaming/assets/8765691/e5a46871-ef9d-4ba0-8c7d-18f572941057">



Discussion / hints:

Fix patch:
diff --git a/km-extends/km-monitor/src/main/java/com/xiaojukeji/know/streaming/km/monitor/component/AbstractMonitorSinkService.java b/km-extends/km-monitor/src/main/java/com/xiaojukeji/know/streaming/km/monitor/component/AbstractMonitorSinkService.java
index f35c5ec6e..bbb316475 100644
--- a/km-extends/km-monitor/src/main/java/com/xiaojukeji/know/streaming/km/monitor/component/AbstractMonitorSinkService.java
+++ b/km-extends/km-monitor/src/main/java/com/xiaojukeji/know/streaming/km/monitor/component/AbstractMonitorSinkService.java
@@ -123,6 +123,7 @@ private List<MetricSinkPoint> partitionMetric2SinkPoint(List<PartitionMetrics> p
             tagsMap.put(CLUSTER_ID.getName(),     p.getClusterPhyId());
             tagsMap.put(BROKER_ID.getName(),      p.getBrokerId());
             tagsMap.put(PARTITION_ID.getName(),   p.getPartitionId());
+            tagsMap.put(TOPIC.getName(),          p.getTopic());
 
             pointList.addAll(genSinkPoint("Partition", p.getMetrics(), p.getTimestamp(), tagsMap));
         }


Test patch: