[Bugfix]修复Prometheus开放接口中,Partition指标tag缺失的问题(#1013)

This commit is contained in:
ZQKC
2023-05-12 13:52:26 +08:00
committed by EricZeng
parent db044caf8b
commit e975932d41

View File

@@ -123,6 +123,7 @@ public abstract class AbstractMonitorSinkService implements ApplicationListener<
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));
}