环境:
发行:
我所拥有的(发行):


我想要的东西:

普罗米修斯中的设置:


运行命令cAdvisor:
运行
问题:

发布于 2018-05-16 03:40:20
我想问题是关于顾问的。您可以尝试检查cadvisor度量端点:http://172.28.5.201:8080/metrics,以确保cadvisor返回度量示例:
示例:
# HELP container_start_time_seconds Start time of the container since unix epoch in seconds.
# TYPE container_start_time_seconds gauge
container_start_time_seconds{id="/",image="",name=""} 1.525939343e+09
container_start_time_seconds{id="/docker",image="",name=""} 1.526006565e+09
container_start_time_seconds{id="/docker/d4b87911bd0842ee1d6969e6a05aa3d36a48a801184faf14e1b23169e056da92",image="busybox",name="trusting_bassi"}发布于 2018-05-28 03:47:00
在云龙回答的基础上:添加--volume=/sys:/sys:ro,您还需要在shell下运行以下命令:
$ mount -o remount,rw '/sys/fs/cgroup'
$ ln -s /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/cpuacct,cpu否则,您的cAdvisor会在容器打开后立即崩溃。
https://stackoverflow.com/questions/50325098
复制相似问题