diff --git a/ui/app/[locale]/kafka/[kafkaId]/nodes/NodesTable.tsx b/ui/app/[locale]/kafka/[kafkaId]/nodes/NodesTable.tsx index d2998624f..20c6eaf54 100644 --- a/ui/app/[locale]/kafka/[kafkaId]/nodes/NodesTable.tsx +++ b/ui/app/[locale]/kafka/[kafkaId]/nodes/NodesTable.tsx @@ -7,9 +7,9 @@ import { } from "@/libs/patternfly/react-charts"; import { ClipboardCopy, + Flex, + FlexItem, Label, - Split, - SplitItem, Text, TextContent, Tooltip, @@ -124,8 +124,8 @@ export function NodesTable({ nodes }: { nodes: Node[] }) { isRowExpandable={() => true} getExpandedRow={({ row }) => { return ( - - + + Broker host name @@ -140,58 +140,60 @@ export function NodesTable({ nodes }: { nodes: Node[] }) { - - + + Broker disk usage - (datum.x ? datum.x : null)} - padding={{ - bottom: 0, - left: 10, - right: 150, - top: 0, - }} - width={350} - > - - datum.x - ? `${datum.x}: ${format.number(datum.y / 100, { - style: "percent", - })}` - : null - } - legendData={[ - { name: `Capacity: 80%` }, - { name: "Warning at 60%" }, - { name: "Danger at 90%" }, +
+ - - - + height={200} + labels={({ datum }) => (datum.x ? datum.x : null)} + padding={{ + bottom: 0, + left: 10, + right: 150, + top: 0, + }} + width={350} + > + + datum.x + ? `${datum.x}: ${format.number(datum.y / 100, { + style: "percent", + })}` + : null + } + legendData={[ + { name: `Capacity: 80%` }, + { name: "Warning at 60%" }, + { name: "Danger at 90%" }, + ]} + legendOrientation="vertical" + title={`${format.number(row.diskUsage / row.diskCapacity, { + style: "percent", + })}`} + subTitle={`of ${formatBytes(row.diskCapacity)}`} + thresholds={[{ value: 60 }, { value: 90 }]} + /> + +
+
+ ); }} />