Skip to content

Commit

Permalink
ui/monitoring: Fix the bug of the CP/WP avg metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengYanJin committed Nov 29, 2021
1 parent d30d6b5 commit 7545c68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/services/platformlibrary/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export const getControlPlaneBandWidthAvgInQuery = (
}

const nodeCPBandwithInAvgPrometheusQuery = encodeURIComponent(
`${nodesCPBandwidthInPrometheusQuery.join('+')} / ${
`(${nodesCPBandwidthInPrometheusQuery.join('+')}) / ${
nodesCPBandwidthInPrometheusQuery.length
}`,
);
Expand Down Expand Up @@ -290,7 +290,7 @@ export const getControlPlaneBandWidthAvgOutQuery = (
}

const nodeCPBandwithAvgOutPrometheusQuery = encodeURIComponent(
`${nodesCPBandwidthOutPrometheusQuery.join('+')} / ${
`(${nodesCPBandwidthOutPrometheusQuery.join('+')}) / ${
nodesCPBandwidthOutPrometheusQuery.length
}`,
);
Expand Down Expand Up @@ -377,7 +377,7 @@ export const getWorkloadPlaneBandWidthAvgInQuery = (
}

const nodeWPBandwithInAvgPrometheusQuery = encodeURIComponent(
`${nodesWPBandwidthInPrometheusQuery.join('+')} / ${
`(${nodesWPBandwidthInPrometheusQuery.join('+')}) / ${
nodesWPBandwidthInPrometheusQuery.length
}`,
);
Expand Down Expand Up @@ -419,7 +419,7 @@ export const getWorkloadPlaneBandWidthAvgOutQuery = (
}

const nodeWPBandwithAvgOutPrometheusQuery = encodeURIComponent(
`${nodesWPBandwidthOutPrometheusQuery.join('+')} / ${
`(${nodesWPBandwidthOutPrometheusQuery.join('+')}) / ${
nodesWPBandwidthOutPrometheusQuery.length
}`,
);
Expand Down

0 comments on commit 7545c68

Please sign in to comment.