From d7fc0a4a90f0741fe902090086d28ddd80b366fe Mon Sep 17 00:00:00 2001 From: xrsv Date: Fri, 21 Feb 2025 14:32:33 -0800 Subject: [PATCH] Revert "fix(dashboard): attempt to fix testnets widgets with errors" (#1030) Revert "fix(dashboard): attempt to fix testnets widgets with errors (#1029)" This reverts commit cad4a6620320442494384f5460edc2ac19e95e5a. --- bin/stacks/routing-dashboard-stack.ts | 33 ++++++++------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/bin/stacks/routing-dashboard-stack.ts b/bin/stacks/routing-dashboard-stack.ts index ad44770c4c..9b9871f33a 100644 --- a/bin/stacks/routing-dashboard-stack.ts +++ b/bin/stacks/routing-dashboard-stack.ts @@ -105,21 +105,12 @@ export class RoutingDashboardStack extends cdk.NestedStack { width: 24, type: 'metric', properties: { - metrics: _.flatMap(chains, (chainId) => [ - [ - { - expression: `FILL(mreqc${chainId}, 0)`, - label: `Requests on ${ID_TO_NETWORK_NAME(chainId)}`, - id: `e1c${chainId}`, - }, - ], - [ - NAMESPACE, - `GET_QUOTE_REQUESTED_CHAINID: ${chainId}`, - 'Service', - 'RoutingAPI', - { id: `mreqc${chainId}`, visible: false }, - ], + metrics: chains.map((chainId) => [ + NAMESPACE, + `GET_QUOTE_REQUESTED_CHAINID: ${chainId}`, + 'Service', + 'RoutingAPI', + { id: `mreqc${chainId}`, label: `Requests on ${ID_TO_NETWORK_NAME(chainId)}` }, ]), view: 'timeSeries', stacked: false, @@ -408,8 +399,7 @@ export class RoutingDashboardStack extends cdk.NestedStack { metrics: _.flatMap(chains, (chainId) => [ [ { - expression: `IF(FILL(mreqc${chainId}, 0) == 0, 0, - (m200c${chainId} / (mreqc${chainId} - m400c${chainId})) * 100)`, + expression: `(m200c${chainId} / (mreqc${chainId} - m400c${chainId})) * 100`, label: `Success Rate on ${ID_TO_NETWORK_NAME(chainId)}`, id: `e1c${chainId}`, }, @@ -459,8 +449,7 @@ export class RoutingDashboardStack extends cdk.NestedStack { metrics: _.flatMap(chains, (chainId) => [ [ { - expression: `IF(FILL(mreqc${chainId}, 0) == 0, 0, - (m200c${chainId} / mreqc${chainId}) * 100)`, + expression: `(m200c${chainId} / mreqc${chainId}) * 100`, label: `Success Rate (w. 4XX) on ${ID_TO_NETWORK_NAME(chainId)}`, id: `e1c${chainId}`, }, @@ -503,8 +492,7 @@ export class RoutingDashboardStack extends cdk.NestedStack { metrics: _.flatMap(chains, (chainId) => [ [ { - expression: `IF(FILL(mreqc${chainId}, 0) == 0, 0, - (m500c${chainId} / mreqc${chainId}) * 100)`, + expression: `(m500c${chainId} / mreqc${chainId}) * 100`, label: `5XX Error Rate on ${ID_TO_NETWORK_NAME(chainId)}`, id: `e1c${chainId}`, }, @@ -547,8 +535,7 @@ export class RoutingDashboardStack extends cdk.NestedStack { metrics: _.flatMap(chains, (chainId) => [ [ { - expression: `IF(FILL(mreqc${chainId}, 0) == 0, 0, - (m400c${chainId} / mreqc${chainId}) * 100)`, + expression: `(m400c${chainId} / mreqc${chainId}) * 100`, label: `4XX Error Rate on ${ID_TO_NETWORK_NAME(chainId)}`, id: `e2c${chainId}`, },