refactor(性能测试): 资源池默认监控端口是 9100

This commit is contained in:
Captain.B 2021-04-16 15:09:29 +08:00 committed by 刘瑞斌
parent 9e67da7a1f
commit b610e11b4e
1 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,11 @@ public class ConsulService {
for (TestResource resource : resources) { for (TestResource resource : resources) {
NodeDTO node = JSON.parseObject(resource.getConfiguration(), NodeDTO.class); NodeDTO node = JSON.parseObject(resource.getConfiguration(), NodeDTO.class);
// 资源池默认9100 // 资源池默认9100
result.put(node.getIp() + "-" + node.getMonitorPort(), Collections.singletonList("metersphere")); int port = 9100;
if (node.getMonitorPort() != null) {
port = node.getMonitorPort();
}
result.put(node.getIp() + "-" + port, Collections.singletonList("metersphere"));
} }
} }
return result; return result;