github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/src/views/cluster/containers/nodeGraphs/dashboards/requests.tsx (about) 1 // Copyright 2018 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 import React from "react"; 12 13 import { LineGraph } from "src/views/cluster/components/linegraph"; 14 import { Metric, Axis } from "src/views/shared/components/metricQuery"; 15 16 import { GraphDashboardProps } from "./dashboardUtils"; 17 18 export default function (props: GraphDashboardProps) { 19 const { storeSources } = props; 20 21 return [ 22 <LineGraph title="Slow Raft Proposals" sources={storeSources}> 23 <Axis label="proposals"> 24 <Metric name="cr.store.requests.slow.raft" title="Slow Raft Proposals" downsampleMax /> 25 </Axis> 26 </LineGraph>, 27 28 <LineGraph title="Slow DistSender RPCs" sources={storeSources}> 29 <Axis label="proposals"> 30 <Metric name="cr.node.requests.slow.distsender" title="Slow DistSender RPCs" downsampleMax /> 31 </Axis> 32 </LineGraph>, 33 34 <LineGraph title="Slow Lease Acquisitions" sources={storeSources}> 35 <Axis label="lease acquisitions"> 36 <Metric name="cr.store.requests.slow.lease" title="Slow Lease Acquisitions" downsampleMax /> 37 </Axis> 38 </LineGraph>, 39 40 <LineGraph title="Slow Latch Acquisitions" sources={storeSources}> 41 <Axis label="latch acquisitions"> 42 <Metric name="cr.store.requests.slow.latch" title="Slow Latch Acquisitions" downsampleMax /> 43 </Axis> 44 </LineGraph>, 45 ]; 46 }