Skip to content

Commit

Permalink
Revert "fix(dashboard): attempt to fix testnets widgets with errors" (#…
Browse files Browse the repository at this point in the history
…1030)

Revert "fix(dashboard): attempt to fix testnets widgets with errors (#1029)"

This reverts commit cad4a66.
  • Loading branch information
xrsv authored Feb 21, 2025
1 parent cad4a66 commit d7fc0a4
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions bin/stacks/routing-dashboard-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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}`,
},
Expand Down Expand Up @@ -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}`,
},
Expand Down Expand Up @@ -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}`,
},
Expand Down Expand Up @@ -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}`,
},
Expand Down

0 comments on commit d7fc0a4

Please sign in to comment.