-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds an Overload dashboard in the metrics view. This is intended to be a convenient way to monitor admission control. The dashboard contains: - CPU Percent - Runnable Goroutines per CPU - L0 Sublevels and Files Release note (ui change): a new Overload dashboard groups metrics that are useful for admission control.
- Loading branch information
1 parent
3e90db4
commit 92bc49c
Showing
5 changed files
with
115 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
pkg/ui/src/views/cluster/containers/nodeGraphs/dashboards/overload.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// Copyright 2021 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
import React from "react"; | ||
import _ from "lodash"; | ||
|
||
import { LineGraph } from "src/views/cluster/components/linegraph"; | ||
import { | ||
Metric, | ||
Axis, | ||
AxisUnits, | ||
} from "src/views/shared/components/metricQuery"; | ||
|
||
import { | ||
GraphDashboardProps, | ||
nodeDisplayName, | ||
storeIDsForNode, | ||
} from "./dashboardUtils"; | ||
|
||
export default function (props: GraphDashboardProps) { | ||
const { nodeIDs, nodesSummary, nodeSources, storeSources } = props; | ||
|
||
return [ | ||
<LineGraph title="CPU Percent" sources={nodeSources}> | ||
<Axis units={AxisUnits.Percentage} label="CPU"> | ||
{nodeIDs.map((nid) => ( | ||
<Metric | ||
name="cr.node.sys.cpu.combined.percent-normalized" | ||
title={nodeDisplayName(nodesSummary, nid)} | ||
sources={[nid]} | ||
/> | ||
))} | ||
</Axis> | ||
</LineGraph>, | ||
|
||
<LineGraph | ||
title="Runnable Goroutines per CPU" | ||
sources={nodeSources} | ||
tooltip={`The number of Goroutines waiting per CPU.`} | ||
> | ||
<Axis label="goroutines"> | ||
{nodeIDs.map((nid) => ( | ||
<Metric | ||
name="cr.node.sys.runnable.goroutines.per.cpu" | ||
title={nodeDisplayName(nodesSummary, nid)} | ||
sources={[nid]} | ||
/> | ||
))} | ||
</Axis> | ||
</LineGraph>, | ||
|
||
<LineGraph | ||
title="LSM L0 Health" | ||
sources={storeSources} | ||
tooltip={`The number of files and sublevels within Level 0.`} | ||
> | ||
<Axis label="count"> | ||
{nodeIDs.map((nid) => ( | ||
<> | ||
<Metric | ||
key={nid} | ||
name="cr.store.storage.l0-sublevels" | ||
title={"L0 Sublevels " + nodeDisplayName(nodesSummary, nid)} | ||
sources={storeIDsForNode(nodesSummary, nid)} | ||
/> | ||
<Metric | ||
key={nid} | ||
name="cr.store.storage.l0-num-files" | ||
title={"L0 Files " + nodeDisplayName(nodesSummary, nid)} | ||
sources={storeIDsForNode(nodesSummary, nid)} | ||
/> | ||
</> | ||
))} | ||
</Axis> | ||
</LineGraph>, | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters