feat: 新增Mirror Maker 2.0(MM2)

This commit is contained in:
wyb
2023-02-10 16:39:47 +08:00
committed by lucasun
parent f03460f3cd
commit fa2abadc25
19 changed files with 3096 additions and 32 deletions

View File

@@ -5,6 +5,7 @@ const METRIC_DASHBOARD_REQ_MAP = {
[MetricType.Broker]: (clusterId: string) => api.getDashboardMetricChartData(clusterId, MetricType.Broker),
[MetricType.Topic]: (clusterId: string) => api.getDashboardMetricChartData(clusterId, MetricType.Topic),
[MetricType.Zookeeper]: (clusterId: string) => api.getZookeeperMetrics(clusterId),
[MetricType.MM2]: (clusterId: string) => api.getMirrorMakerMetrics(clusterId),
};
export const getMetricDashboardReq = (clusterId: string, type: MetricType.Broker | MetricType.Topic | MetricType.Zookeeper) =>