-
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.
streamingccl,db-console: add Cross-Cluster Replication metrics page
This change adds a new option to the metric dropdown dashboard for Cross-Cluster Replication. This page will show all the user-facing metrics relevant to C2C replication. Informs: #95995 Release note: None
- Loading branch information
1 parent
0fbaa27
commit 64bcf33
Showing
3 changed files
with
69 additions
and
8 deletions.
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
55 changes: 55 additions & 0 deletions
55
...db-console/src/views/cluster/containers/nodeGraphs/dashboards/crossClusterReplication.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,55 @@ | ||
// Copyright 2023 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 { LineGraph } from "src/views/cluster/components/linegraph"; | ||
import { Metric, Axis } from "src/views/shared/components/metricQuery"; | ||
import { AxisUnits } from "@cockroachlabs/cluster-ui"; | ||
|
||
import { GraphDashboardProps } from "./dashboardUtils"; | ||
|
||
export default function (props: GraphDashboardProps) { | ||
const { storeSources } = props; | ||
|
||
return [ | ||
<LineGraph | ||
title="Replication Lag" | ||
sources={storeSources} | ||
tooltip={`The time between the wall clock and replicated time of the replication stream. | ||
This metric tracks how far behind the replication stream is relative to now.`} | ||
> | ||
<Axis units={AxisUnits.Duration} label="time"> | ||
<Metric | ||
name="cr.node.replication.frontier_lag_seconds" | ||
title="Replication Lag" | ||
/> | ||
</Axis> | ||
</LineGraph>, | ||
<LineGraph | ||
title="KV Bytes" | ||
sources={storeSources} | ||
tooltip={`KV bytes (sum of keys + values) ingested by all replication jobs`} | ||
> | ||
<Axis units={AxisUnits.Duration} label="time"> | ||
<Metric name="cr.node.replication.kv_bytes" title="KV Bytes" /> | ||
</Axis> | ||
</LineGraph>, | ||
<LineGraph | ||
title="SST Bytes" | ||
sources={storeSources} | ||
tooltip={`SST bytes (compressed) sent to KV by all replication jobs`} | ||
> | ||
<Axis units={AxisUnits.Duration} label="time"> | ||
<Metric name="cr.node.replication.sst_bytes" title="SST Bytes" /> | ||
</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