Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading