提交 e28c8193 编写于 作者: J jialinsun

add database monitor all group

上级 f8e03446
......@@ -83,10 +83,6 @@ public class Handler implements PageHandler<Context> {
}
}
if(StringUtils.isEmpty(payload.getGroup())){
payload.setGroup(DatabaseGroup.KEY_GROUPS.keySet().iterator().next());
}
int timeRange = payload.getTimeRange();
Date startTime = new Date(payload.getDate() - (timeRange - 1) * TimeHelper.ONE_HOUR);
Date endTime = new Date(payload.getDate() + TimeHelper.ONE_HOUR - 1);
......
......@@ -31,6 +31,7 @@
</span>
<span class="input-group-btn" style="width:125px;">
<select class="form-control" id="group" style="width:120px;height:34px">
<option value=''>All</option>
<c:forEach var="item" items="${model.groups}" varStatus="status">
<option value='${item}'>${item}</option>
</c:forEach>
......
......@@ -11,7 +11,7 @@ public class MetricMonitorTest {
@Test
public void test() throws Exception {
String host = "localhost:2281";
String host = "cat.qa.dianpingoa.com";
String group = "db-mysql-tg01s6.nh[10.1.1.136]";
for (int i = 0; i < 1000; i++) {
SendData(host, group, "Load", 100);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册