diff --git a/web/src/pages/Dashboard/GatewayMonitor.js b/web/src/pages/Dashboard/GatewayMonitor.js index 53da2579..4ddf83ff 100644 --- a/web/src/pages/Dashboard/GatewayMonitor.js +++ b/web/src/pages/Dashboard/GatewayMonitor.js @@ -53,6 +53,27 @@ class GatewayMonitor extends PureComponent { // 数据源 const chartDataIndex = []; const chartDataQuery = []; + const chartDataGateway = []; + const chartDataTop = [{ + user:"liugq", + count: 202989, + },{ + user:"liaosy", + count: 342989, + },{ + user:"medcl", + count: 285989, + },{ + user:"blogsit", + count: 291989, + },{ + user:"lucas", + count: 272489, + },{ + user:"liming", + count: 312589, + }]; + for (let i = 0; i < 24; i += 1) { chartDataIndex.push({ x_time: this.formatDate(new Date().getTime() + (1000 * 60 * 60 * (i-24))), @@ -62,6 +83,10 @@ class GatewayMonitor extends PureComponent { x_time: this.formatDate(new Date().getTime() + (1000 * 60 * 60 * (i-24))), y_value: Math.floor(Math.random() * 100) * 500, }); + chartDataGateway.push({ + x_time: this.formatDate(new Date().getTime() + (1000 * 60 * 60 * (i-24))), + y_value: Math.floor(Math.random() * 100) * 3000, + }); } // 定义度量 @@ -149,6 +174,62 @@ class GatewayMonitor extends PureComponent { + + + + +

+ 网关写入QPS +

+ + + + + +
+
+ + + +
+ +

+ Top用户统计 +

+ + + + +
+
+
+ +
) }