Skip to content

Commit

Permalink
processing rate contextual flow
Browse files Browse the repository at this point in the history
Signed-off-by: veds-g <[email protected]>
  • Loading branch information
veds-g committed Feb 3, 2025
1 parent afc16ac commit 7b9cb05
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export function VertexDetails({
{tabValue === PROCESSING_RATES_TAB_INDEX && (
<ProcessingRates
vertexId={vertexId}
namespaceId={namespaceId}
pipelineId={pipelineId}
type={type}
vertexMetrics={vertexMetrics}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import { MetricsModalWrapper } from "../../../../../MetricsModalWrapper";
import { PipelineVertexMetric } from "../../../../../../../types/declarations/pipeline";

import "./style.css";

export interface ProcessingRatesProps {
vertexId: string;
namespaceId: string;
pipelineId: string;
type: string;
vertexMetrics: any;
}

export function ProcessingRates({
vertexMetrics,
namespaceId,
pipelineId,
type,
vertexId,
Expand Down Expand Up @@ -92,7 +95,20 @@ export function ProcessingRates({
{type !== "monoVertex" && (
<TableCell>{metric.partition}</TableCell>
)}
<TableCell>{formatRate(metric.oneM)}</TableCell>
<TableCell>
<MetricsModalWrapper
namespaceId={namespaceId}
pipelineId={pipelineId}
vertexId={vertexId}
type={type}
metricName={
type === "monoVertex"
? "monovtx_read_total"
: "forwarder_data_read_total"
}
value={formatRate(metric.oneM)}
/>
</TableCell>
<TableCell>{formatRate(metric.fiveM)}</TableCell>
<TableCell>{formatRate(metric.fifteenM)}</TableCell>
</TableRow>
Expand Down

0 comments on commit 7b9cb05

Please sign in to comment.