refactor(性能测试): 资源池默认监控端口是 9100
This commit is contained in:
parent
9e67da7a1f
commit
b610e11b4e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue