虽然我知道我们有 Docker 远程 API(https://my.company.docker.net/containers/ {containerId}/stats)来获取给定容器的 cpu、mem 统计信息以及其他详细信息,但我想获得整合的 cpu , 在我们的负载均衡器后面运行的所有 docker 实例的内存使用情况。
假设负载均衡器是https://helloworld.lb.net并且在此负载均衡器后面有 3 个 docker 容器实例,流量可以流向(即 helloworld.node1.net、helloworld.node2.net 和 helloworld.node3 。网)。我想获得这 3 个实例的综合 cpu、mem 使用情况,而不是单独的形式。要启动的实例将是动态的。
另请注意,负载平衡器是动态的而不是静态的。不同的业务应用程序可能有不同的负载均衡器,例如 crmapp.lb.net,anotherapp.lb.net 支持相应的 docker 容器实例。
提前致谢。