0

虽然我知道我们有 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 容器实例。

提前致谢。

4

1 回答 1

0

您还需要编排您的 Prometheus 和 Grafanna 堆栈,并让它动态监控新生成的实例。这可以是你的起点

于 2018-03-11T13:59:31.567 回答