Skip to content

Commit 13741ff

Browse files
committed
ui: add value separation metrics to storage dashboard
Extend the storage dashboard to include value separation metrics. For now this includes referenced and unreferenced value byte totals and the sum of the size of all blob files. Informs #156391. Epic: none Release note: none
1 parent 46314a3 commit 13741ff

File tree

1 file changed

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

1 file changed

+55
-0
lines changed

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

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,61 @@ export default function (props: GraphDashboardProps) {
475475
</Axis>
476476
</LineGraph>,
477477

478+
<LineGraph
479+
title="Value Separated Bytes"
480+
sources={storeSources}
481+
isKvGraph={true}
482+
tenantSource={tenantSource}
483+
tooltip={
484+
<div>
485+
The volume of bytes stored separated from keys, externally in blob files.
486+
</div>
487+
}
488+
showMetricsInTooltip={true}
489+
>
490+
<Axis units={AxisUnits.Bytes} label="bytes">
491+
{multipleStoreMetrics(
492+
[
493+
{
494+
prefix: "referenced",
495+
name: "cr.store.storage.value_separation.value_bytes.referenced",
496+
aggregateMax: true,
497+
},
498+
{
499+
prefix: "unreferenced",
500+
name: "cr.store.storage.value_separation.value_bytes.unreferenced",
501+
aggregateMax: true,
502+
},
503+
],
504+
nodeIDs,
505+
storeIDsByNodeID,
506+
)}
507+
</Axis>
508+
</LineGraph>,
509+
510+
<LineGraph
511+
title="Blob File Sizes"
512+
sources={storeSources}
513+
isKvGraph={true}
514+
tenantSource={tenantSource}
515+
tooltip={
516+
<div>
517+
The aggregate physical size of blob files storing separated values.
518+
</div>
519+
}
520+
showMetricsInTooltip={true}
521+
>
522+
<Axis units={AxisUnits.Bytes} label="bytes">
523+
{storeMetrics(
524+
{
525+
name: "cr.store.storage.value_separation.blob_files.size",
526+
},
527+
nodeIDs,
528+
storeIDsByNodeID,
529+
)}
530+
</Axis>
531+
</LineGraph>,
532+
478533
<LineGraph
479534
title="File Descriptors"
480535
sources={nodeSources}

0 commit comments

Comments
 (0)