Browse Source

dashboard: change text of p_qps and b_qps to be more intuitive in monitoring page (#398)

master
Arlmls Eric Zhao 6 years ago
parent
commit
6dfe8e3098
2 changed files with 5 additions and 5 deletions
  1. +2
    -2
      sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/metric.js
  2. +3
    -3
      sentinel-dashboard/src/main/webapp/resources/app/views/metric.html

+ 2
- 2
sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/metric.js View File

@@ -131,10 +131,10 @@ app.controller('MetricCtl', ['$scope', '$stateParams', 'MetricService', '$interv
allowAllCanceled: true,
itemFormatter: function (val) {
if ('passQps' === val) {
return 'p_qps';
return 'p_qps(通过 QPS)';
}
if ('blockQps' === val) {
return 'b_qps';
return 'b_qps(拒绝 QPS)';
}
return val;
},


+ 3
- 3
sentinel-dashboard/src/main/webapp/resources/app/views/metric.html View File

@@ -51,9 +51,9 @@
<thead>
<tr style="font-size: 13px;text-align:center;font-weight: bold;">
<td style="word-wrap:break-word;word-break:break-all;">时间</td>
<td style="word-wrap:break-word;word-break:break-all;" title="passQps: 通过的qps">p_qps</td>
<td style="word-wrap:break-word;word-break:break-all;" title="blockQps: 拦截的qps">b_qps</td>
<td style="word-wrap:break-word;word-break:break-all;" title="responseTime: 响应时间(毫秒)">rt(ms)</td>
<td style="word-wrap:break-word;word-break:break-all;" title="passQps: 通过的qps">通过QPS</td>
<td style="word-wrap:break-word;word-break:break-all;" title="blockQps: 拦截的qps">拒绝QPS</td>
<td style="word-wrap:break-word;word-break:break-all;" title="responseTime: 响应时间(毫秒)">响应时间(ms)</td>
</tr>
</thead>
<!-- thead -->


Loading…
Cancel
Save