diff --git a/src/components/PDiskInfo/PDiskInfo.tsx b/src/components/PDiskInfo/PDiskInfo.tsx index f5e959f265..a8bf93082f 100644 --- a/src/components/PDiskInfo/PDiskInfo.tsx +++ b/src/components/PDiskInfo/PDiskInfo.tsx @@ -41,6 +41,7 @@ function getPDiskInfo({ SerialNumber, TotalSize, AllocatedSize, + AllocatedPercent, StatusV2, NumActiveSlots, ExpectedSlotCount, @@ -109,6 +110,12 @@ function getPDiskInfo({ /> ), }); + if (!isNaN(Number(AllocatedPercent))) { + spaceInfo.push({ + label: pDiskInfoKeyset('usage'), + value: `${AllocatedPercent}%`, + }); + } if (valueIsDefined(NumActiveSlots) && valueIsDefined(ExpectedSlotCount)) { spaceInfo.push({ label: pDiskInfoKeyset('slots'), diff --git a/src/components/PDiskInfo/i18n/en.json b/src/components/PDiskInfo/i18n/en.json index ac3f95839d..9ca68d8f9b 100644 --- a/src/components/PDiskInfo/i18n/en.json +++ b/src/components/PDiskInfo/i18n/en.json @@ -11,6 +11,7 @@ "realtime": "Realtime", "space": "Space", + "usage": "Usage", "slots": "Slots", "log-size": "Log Size", "system-size": "System Size", diff --git a/src/components/VDiskInfo/VDiskInfo.tsx b/src/components/VDiskInfo/VDiskInfo.tsx index d2017ecebe..21ed7564a7 100644 --- a/src/components/VDiskInfo/VDiskInfo.tsx +++ b/src/components/VDiskInfo/VDiskInfo.tsx @@ -50,6 +50,7 @@ export function VDiskInfo({ const { AllocatedSize, SizeLimit, + AllocatedPercent, DiskSpace, FrontQueues, Guid, @@ -97,6 +98,13 @@ export function VDiskInfo({ ), }); } + if (!isNaN(Number(AllocatedPercent))) { + leftColumn.push({ + label: vDiskInfoKeyset('usage'), + value: `${AllocatedPercent}%`, + }); + } + if (!isNil(DiskSpace)) { leftColumn.push({ label: vDiskInfoKeyset('space-status'), diff --git a/src/components/VDiskInfo/i18n/en.json b/src/components/VDiskInfo/i18n/en.json index eb5dd9deab..528e9209ce 100644 --- a/src/components/VDiskInfo/i18n/en.json +++ b/src/components/VDiskInfo/i18n/en.json @@ -22,6 +22,7 @@ "has-unreadable-blobs": "Has Unreadable Blobs", "size": "Size", + "usage": "Usage", "read-throughput": "Read Throughput", "write-throughput": "Write Throughput",