Skip to content

Commit

Permalink
dashboards: add replica cpu to repl dashboard
Browse files Browse the repository at this point in the history
In cockroachdb#96127 we added the option to load balance replica CPU instead of QPS
across stores in a cluster. It is desirable to view the signal being
controlled for rebalancing in the replication dashboard, similar to QPS.

This commit adds the `rebalancing.cpunanospersecond` metric to the
replication metrics dashboard.

Resolves: cockroachdb#98109

Release note (ui change): `rebalancing.cpunanospersecond` is now
included in the replication metrics dashboard.
  • Loading branch information
kvoli committed Mar 9, 2023
1 parent 8ed0615 commit 646d5e6
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,24 @@ export default function (props: GraphDashboardProps) {
</Axis>
</LineGraph>,

<LineGraph
title="Average Replica CPU per Node"
tooltip={`Moving average of all replica CPU usage on each node per second.
Tracks roughly the last 30 minutes of usage. Used for load-based
rebalancing decisions.`}
>
<Axis units={AxisUnits.Duration} label="CPU time">
{nodeIDs.map(nid => (
<Metric
key={nid}
name="cr.store.rebalancing.cpunanospersecond"
title={nodeDisplayName(nodeDisplayNameByID, nid)}
sources={storeIDsForNode(storeIDsByNodeID, nid)}
/>
))}
</Axis>
</LineGraph>,

<LineGraph
title="Logical Bytes per Node"
tooltip={<LogicalBytesGraphTooltip />}
Expand Down

0 comments on commit 646d5e6

Please sign in to comment.