Skip to content

Commit 8971cd2

Browse files
committed
ui: add store disk read bytes to storage dashboard
This patch adds a metric for store disk read bytes in the Storage dashboard. Epic: none Release note: None
1 parent 3e8bf52 commit 8971cd2

File tree

1 file changed

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

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,5 +491,30 @@ export default function (props: GraphDashboardProps) {
491491
)}
492492
</Axis>
493493
</LineGraph>,
494+
495+
<LineGraph
496+
title="Store Disk Read Bytes/s"
497+
sources={storeSources}
498+
isKvGraph={true}
499+
tenantSource={tenantSource}
500+
tooltip={
501+
<div>
502+
The number of bytes read from the store's disk per second{" "}
503+
{tooltipSelection} (as reported by the OS).
504+
</div>
505+
}
506+
showMetricsInTooltip={true}
507+
>
508+
<Axis units={AxisUnits.Bytes} label="bytes">
509+
{storeMetrics(
510+
{
511+
name: "cr.store.storage.disk.read.bytes",
512+
nonNegativeRate: true,
513+
},
514+
nodeIDs,
515+
storeIDsByNodeID,
516+
)}
517+
</Axis>
518+
</LineGraph>,
494519
];
495520
}

0 commit comments

Comments
 (0)