mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-13 03:29:45 +08:00
28 lines
904 B
TypeScript
28 lines
904 B
TypeScript
import React from 'react';
|
|
import { MetricType } from '@src/api';
|
|
import BrokerHealthCheck from '@src/components/CardBar/BrokerHealthCheck';
|
|
import DashboardDragChart from '@src/components/DashboardDragChart';
|
|
import DBreadcrumb from 'knowdesign/es/extend/d-breadcrumb';
|
|
import { AppContainer } from 'knowdesign';
|
|
|
|
const BrokerDashboard = (): JSX.Element => {
|
|
const [global] = AppContainer.useGlobalValue();
|
|
return (
|
|
<>
|
|
<div className="breadcrumb" style={{ marginBottom: '10px' }}>
|
|
<DBreadcrumb
|
|
breadcrumbs={[
|
|
{ label: '多集群管理', aHref: '/' },
|
|
{ label: global?.clusterInfo?.name, aHref: `/cluster/${global?.clusterInfo?.id}` },
|
|
{ label: 'Broker', aHref: `` },
|
|
]}
|
|
/>
|
|
</div>
|
|
<BrokerHealthCheck />
|
|
<DashboardDragChart type={MetricType.Broker} />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default BrokerDashboard;
|