From 961f76487482585b5e0d8797064c0d0b4e0122a2 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 19 May 2021 16:37:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=BD=91=E7=BB=9C=E7=9B=91=E6=8E=A7=E7=9A=84?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E4=B8=BA=20kb/s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../performance/controller/request/MetricQuery.java | 4 ++-- .../components/performance/report/components/MonitorCard.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/main/java/io/metersphere/performance/controller/request/MetricQuery.java b/backend/src/main/java/io/metersphere/performance/controller/request/MetricQuery.java index 941cb1d578..49dda8162b 100644 --- a/backend/src/main/java/io/metersphere/performance/controller/request/MetricQuery.java +++ b/backend/src/main/java/io/metersphere/performance/controller/request/MetricQuery.java @@ -11,8 +11,8 @@ public class MetricQuery { put("cpu", "100 - (avg by (instance) (irate(node_cpu_seconds_total{instance='%1$s', mode='idle'}[1m])) * 100)"); put("disk", "100 - node_filesystem_free_bytes{instance='%1$s'} / node_filesystem_size_bytes{instance='%1$s'} * 100"); put("memory", "(node_memory_MemTotal_bytes{instance='%1$s'} - node_memory_MemFree_bytes{instance='%1$s'}) / node_memory_MemTotal_bytes{instance='%1$s'} * 100"); - put("netIn", "sum by (instance) (irate(node_network_receive_bytes_total{instance='%1$s',device!~'bond.*?|lo'}[1m])/1024/1024)"); - put("netOut", "sum by (instance) (irate(node_network_transmit_bytes_total{instance='%1$s',device!~'bond.*?|lo'}[1m])/1024/1024)"); + put("netIn", "sum by (instance) (irate(node_network_receive_bytes_total{instance='%1$s',device!~'bond.*?|lo'}[1m])/1024)"); + put("netOut", "sum by (instance) (irate(node_network_transmit_bytes_total{instance='%1$s',device!~'bond.*?|lo'}[1m])/1024)"); }}; } diff --git a/frontend/src/business/components/performance/report/components/MonitorCard.vue b/frontend/src/business/components/performance/report/components/MonitorCard.vue index af0be6e815..4b2cec99c8 100644 --- a/frontend/src/business/components/performance/report/components/MonitorCard.vue +++ b/frontend/src/business/components/performance/report/components/MonitorCard.vue @@ -153,7 +153,7 @@ export default { }, yAxis: { type: 'value', - name: '流量(MB/s)' + name: '流量(kb/s)' }, series: [{ data: yAxis, @@ -188,7 +188,7 @@ export default { }, yAxis: { type: 'value', - name: '流量(MB/s)' + name: '流量(kb/s)' }, series: [{ data: yAxis,