Skip to content

Commit 262a1d6

Browse files
committed
ui: add Iterator Block Bytes graph to storage dashboard
Add a new graph to the storage dashboard within the DB Console, graphing block bytes loaded by iterators per category. Epic: none Informs #156391. Release note: none
1 parent d188ea6 commit 262a1d6

File tree

1 file changed

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

1 file changed

+45
-0
lines changed

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,51 @@ export default function (props: GraphDashboardProps) {
405405
</Axis>
406406
</LineGraph>,
407407

408+
<LineGraph
409+
title="Iterator Block Bytes"
410+
sources={storeSources}
411+
isKvGraph={true}
412+
tenantSource={tenantSource}
413+
tooltip={
414+
<div>
415+
The number of bytes of blocks loaded by iterators categorized according
416+
to the source {tooltipSelection}. These sums include blocks loaded
417+
from the block cache, blocks loaded from OS page cache and blocks loaded
418+
from disk.
419+
<br />
420+
See the "Hardware" dashboard to view an aggregate of all disk reads.
421+
</div>
422+
}
423+
showMetricsInTooltip={true}
424+
>
425+
<Axis units={AxisUnits.Bytes} label="bytes">
426+
{multipleStoreMetrics([
427+
"abort-span",
428+
"backup",
429+
"batch-eval",
430+
"crdb-unknown",
431+
"intent-resolution",
432+
"mvcc-gc",
433+
"pebble-compaction",
434+
"pebble-get",
435+
"pebble-ingest",
436+
"range-snap",
437+
"rangefeed",
438+
"replication",
439+
"scan-background",
440+
"scan-regular",
441+
"unknown",
442+
].map(category => ({
443+
prefix: category,
444+
name: `cr.store.storage.iterator.category-`+category+`.block-load.bytes`,
445+
nonNegativeRate: true,
446+
})),
447+
nodeIDs,
448+
storeIDsByNodeID,
449+
)}
450+
</Axis>
451+
</LineGraph>,
452+
408453
<LineGraph
409454
title="Store Disk Read Bytes/s"
410455
sources={storeSources}

0 commit comments

Comments
 (0)