[ISSUE #82]Filter the system topic (clusterName+REPLY_TOPIC) when dashboard was making topic statistics (#83)

Co-authored-by: zhangjidi <zhangjidi@cmss.chinamobile.com>
This commit is contained in:
zhangjidi2016
2022-04-11 08:27:48 +08:00
committed by GitHub
parent daa181ccfd
commit 63d9da7429
2 changed files with 3 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ public class CollectTaskRunnble implements Runnable {
inTPS += bsd.getStatsMinute().getTps(); inTPS += bsd.getStatsMinute().getTps();
inMsgCntToday += StatsAllSubCommand.compute24HourSum(bsd); inMsgCntToday += StatsAllSubCommand.compute24HourSum(bsd);
} catch (Exception e) { } catch (Exception e) {
log.warn("Exception caught: mqAdminExt get broker stats data TOPIC_PUT_NUMS failed", e.getMessage()); log.warn("Exception caught: mqAdminExt get broker stats data TOPIC_PUT_NUMS failed, topic [{}]", topic, e.getMessage());
} }
} }
} }
@@ -82,7 +82,7 @@ public class CollectTaskRunnble implements Runnable {
outTPS += bsd.getStatsMinute().getTps(); outTPS += bsd.getStatsMinute().getTps();
outMsgCntToday += StatsAllSubCommand.compute24HourSum(bsd); outMsgCntToday += StatsAllSubCommand.compute24HourSum(bsd);
} catch (Exception e) { } catch (Exception e) {
log.warn("Exception caught: mqAdminExt get broker stats data GROUP_GET_NUMS failed", e.getMessage()); log.warn("Exception caught: mqAdminExt get broker stats data GROUP_GET_NUMS failed, topic [{}], group [{}]", topic, group, e.getMessage());
} }
} }
} }

View File

@@ -254,6 +254,7 @@ public class DashboardCollectTask {
for (Map.Entry<String, Set<String>> entry : clusterTable.entrySet()) { for (Map.Entry<String, Set<String>> entry : clusterTable.entrySet()) {
String clusterName = entry.getKey(); String clusterName = entry.getKey();
TopicValidator.addSystemTopic(clusterName); TopicValidator.addSystemTopic(clusterName);
TopicValidator.addSystemTopic(MixAll.getReplyTopic(clusterName));
Set<String> brokerNames = entry.getValue(); Set<String> brokerNames = entry.getValue();
for (String brokerName : brokerNames) { for (String brokerName : brokerNames) {
TopicValidator.addSystemTopic(brokerName); TopicValidator.addSystemTopic(brokerName);