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
…1024)"

This reverts commit 0cb4a94.
  • Loading branch information
xrsv authored Feb 21, 2025
1 parent 9f66b55 commit 114fbc0
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions bin/stacks/routing-dashboard-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,11 @@ export class RoutingDashboardStack extends cdk.NestedStack {
type: 'metric',
properties: {
metrics: chains.map((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 },
],
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 @@ -406,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 @@ -457,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 @@ -501,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 @@ -545,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 114fbc0

Please sign in to comment.