diff --git a/src/pages/cluster-management/components/detail/cluster-basic.tsx b/src/pages/cluster-management/components/detail/cluster-basic.tsx index af7ba0af..aeba0364 100644 --- a/src/pages/cluster-management/components/detail/cluster-basic.tsx +++ b/src/pages/cluster-management/components/detail/cluster-basic.tsx @@ -143,17 +143,23 @@ const ClusterBasic: React.FC<{ clusterId: number }> = ({ clusterId }) => { {clusterDetail.ready_workers}/{clusterDetail.workers} - Workers + + {intl.formatMessage({ id: 'resources.nodes' })} +
{clusterDetail.models} - Deployments + + {intl.formatMessage({ id: 'clusters.table.deployments' })} +
{clusterDetail.gpus} - GPUs + + {intl.formatMessage({ id: 'menu.resources.gpus' })} +
diff --git a/src/pages/cluster-management/components/detail/cluster-system-load.tsx b/src/pages/cluster-management/components/detail/cluster-system-load.tsx index 6062a16d..7fdf83a7 100644 --- a/src/pages/cluster-management/components/detail/cluster-system-load.tsx +++ b/src/pages/cluster-management/components/detail/cluster-system-load.tsx @@ -1,4 +1,5 @@ import { CardWrapper } from '@gpustack/core-ui'; +import { useIntl } from '@umijs/max'; import { Col, Progress, Row, Tag } from 'antd'; import { round } from 'lodash'; import React, { useEffect } from 'react'; @@ -38,6 +39,7 @@ const Container = styled.div` const ClusterSystemLoad: React.FC<{ clusterId: number }> = ({ clusterId }) => { const { systemLoad, fetchClusterSystemLoad } = useClusterSystemLoad(); + const intl = useIntl(); useEffect(() => { if (clusterId) { @@ -74,14 +76,15 @@ const ClusterSystemLoad: React.FC<{ clusterId: number }> = ({ clusterId }) => { }; console.log('systemLoad', systemLoad); - return (
- GPU Utilization + + {intl.formatMessage({ id: 'dashboard.gpuutilization' })} +
@@ -101,14 +104,16 @@ const ClusterSystemLoad: React.FC<{ clusterId: number }> = ({ clusterId }) => {
- VRAM Utilization + + {intl.formatMessage({ id: 'dashboard.vramutilization' })} +
{`${round(systemLoad.current.vram, 1)}%`}
{renderStepsProgress(round(systemLoad.current.vram, 1), { color: 'purple', - text: 'VRAM' + text: intl.formatMessage({ id: 'dashboard.vram' }) })}
@@ -119,7 +124,9 @@ const ClusterSystemLoad: React.FC<{ clusterId: number }> = ({ clusterId }) => {
- CPU Utilization + + {intl.formatMessage({ id: 'dashboard.cpuutilization' })} +
@@ -139,7 +146,9 @@ const ClusterSystemLoad: React.FC<{ clusterId: number }> = ({ clusterId }) => {
- Memo Utilization + + {intl.formatMessage({ id: 'dashboard.memoryutilization' })} +
@@ -148,7 +157,7 @@ const ClusterSystemLoad: React.FC<{ clusterId: number }> = ({ clusterId }) => {
{renderStepsProgress(round(systemLoad.current.ram, 1), { color: 'green', - text: 'RAM' + text: intl.formatMessage({ id: 'dashboard.memory' }) })}