Skip to content

Commit 60e680c

Browse files
committed
ui: include blob file count on storage dashboard
Adapt the storage dashboard graph that displays the count of sstables in a store to also show the number of blob files. Epic: none Release note: none
1 parent 13741ff commit 60e680c

File tree

1 file changed

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

1 file changed

+16
-5
lines changed

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

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,27 @@ export default function (props: GraphDashboardProps) {
189189
</LineGraph>,
190190

191191
<LineGraph
192-
title="SSTables"
192+
title="File Counts"
193193
sources={storeSources}
194194
isKvGraph={true}
195195
tenantSource={tenantSource}
196-
tooltip={`The number of SSTables in use ${tooltipSelection}.`}
196+
tooltip={`The number of files in use by type ${tooltipSelection}.`}
197197
showMetricsInTooltip={true}
198198
>
199-
<Axis label="sstables">
200-
{storeMetrics(
201-
{ name: "cr.store.rocksdb.num-sstables" },
199+
<Axis label="files">
200+
{multipleStoreMetrics(
201+
[
202+
{
203+
prefix: "sstables",
204+
name: "cr.store.rocksdb.num-sstables",
205+
aggregateMax: true,
206+
},
207+
{
208+
prefix: "blob files",
209+
name: "cr.store.storage.value_separation.blob_files.count",
210+
aggregateMax: true,
211+
},
212+
],
202213
nodeIDs,
203214
storeIDsByNodeID,
204215
)}

0 commit comments

Comments
 (0)