refactor: 增加 node-controller 本身监控上传的prometheus

This commit is contained in:
CaptainB 2023-09-08 15:56:02 +08:00 committed by 刘瑞斌
parent e486c8e7cf
commit 59f4af42d5
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ public class ConsulService {
port = node.getMonitorPort(); port = node.getMonitorPort();
} }
result.put(node.getIp() + "-" + port, Collections.singletonList("metersphere")); result.put(node.getIp() + "-" + port, Collections.singletonList("metersphere"));
// node-controller 监控端口 8082
result.put(node.getIp() + "-" + node.getPort(), Collections.singletonList("metersphere"));
} }
} }
cache.clear(); cache.clear();