Skip to content

Commit d2fe014

Browse files
committed
ui: add 'Unreclaimed Disk Space' graph to storage dashboard
Add an 'Unreclaimed Disk Space' graph to the storage dashboard showing estimates of common sources of space amplification: - zombie sstables - point tombstone estimated bytes - range tombstone estimated bytes Epic: none Release note: none
1 parent 616f0dd commit d2fe014

File tree

1 file changed

+39
-0
lines changed
  • pkg/ui/workspaces/db-console/src/views/cluster/containers/nodeGraphs/dashboards

1 file changed

+39
-0
lines changed

pkg/ui/workspaces/db-console/src/views/cluster/containers/nodeGraphs/dashboards/storage.tsx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,45 @@ export default function (props: GraphDashboardProps) {
523523
</Axis>
524524
</LineGraph>,
525525

526+
<LineGraph
527+
title="Unreclaimed Disk Space"
528+
sources={storeSources}
529+
isKvGraph={true}
530+
tenantSource={tenantSource}
531+
tooltip={
532+
<div>
533+
The estimated volume of physical bytes that are obsolete and should
534+
eventually be reclaimed by compactions or other asynchronous
535+
processes.
536+
</div>
537+
}
538+
showMetricsInTooltip={true}
539+
>
540+
<Axis units={AxisUnits.Bytes} label="bytes">
541+
{multipleStoreMetrics(
542+
[
543+
{
544+
prefix: "zombie sstables",
545+
name: "cr.store.storage.sstable.zombie.bytes",
546+
aggregateMax: true,
547+
},
548+
{
549+
prefix: "range deletions",
550+
name: "cr.store.storage.range_deletions.bytes",
551+
aggregateMax: true,
552+
},
553+
{
554+
prefix: "point deletions",
555+
name: "cr.store.storage.point_deletions.bytes",
556+
aggregateMax: true,
557+
},
558+
],
559+
nodeIDs,
560+
storeIDsByNodeID,
561+
)}
562+
</Axis>
563+
</LineGraph>,
564+
526565
<LineGraph
527566
title="Blob File Sizes"
528567
sources={storeSources}

0 commit comments

Comments
 (0)