![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cadvisor
文章平均质量分 77
katy的小乖
不断学习
展开
-
kubelet上报的container相关指标总是莫名缺少相应的label值,如image, pod, name等
k8s集群中container监控指标有label但是没有value现象原因排查解决现象无法获取到以下label的值:container, image, pod, name集群刚搭建完的时候一切都是正常的,后来运行一段时间后就缺这缺那的。原因排查由于这些指标是kubelet上报的,因此看了对应节点上kubelet的日志,发现kubelet日志一直在报错。centos系统cat /var/log/messages |grep "Failed"Jul 19 17:37:51 m1 kube原创 2021-07-21 17:01:26 · 1962 阅读 · 1 评论 -
cadvisor报错failed to collect filesystem stats- rootDiskErr: du command failed on /rootfs/var/lib/doc
cadvisor版本:v0.32.0镜像:google/cadvisor:latest镜像id: eb1210707573[root@main ~]# docker images|grep cadvisordocker.io/google/cadvisor原创 2020-12-09 16:47:53 · 1656 阅读 · 0 评论 -
cadvisor和node-exporter cpu/mem/disk/net io/disk io指标来源
若有不对,欢迎批评指正#container-cpu````cat/sys/fs/cgroup/cpu,cpuacct/cpuacct.stat````-mem````cat/sys/fs/cgroup/memory/memory.usage_in_bytes如果存在memory.total_inactive_file,并且usagememory.total_inactive_file,那么usage=0,否则usage=usa...原创 2020-05-31 16:32:39 · 795 阅读 · 2 评论 -
cadvisor metrics container_memory_working_set_bytes vs container_memory_usage_bytes
之前查询container mem已经使用的mem,都是使用的是container_memory_usage_bytes,直到早上看到openshift监控平台在查询container mem usage的时候使用的container_memory_working_set_bytes。cadvisor官方给出的metrics文档:https://github.com/google/cadvisor/blob/master/docs/storage/prometheus.mdmem相关的指标...转载 2020-05-25 13:38:37 · 7923 阅读 · 0 评论 -
docker 安装cadvisor报错:Could not configure a source for OOM detection, disabling OOM events: open /dev/
Could not configure a source for OOM detection, disabling OOM events: open /dev/kmsg: no such file or directory运行命令docker run -d -p 8090:8080 --name cadvisor -v /:/rootfs:ro -v /var/run:/var/r...原创 2019-11-11 11:23:18 · 5508 阅读 · 4 评论 -
cadvisor端口冲突 与 Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuacct,cpu: no s
目录官网教程cadvisor端口冲突解决cadvisor退出,状态255日志报错相关issue解决完整的cadvisor官网教程https://prometheus.io/docs/guides/cadvisor/cadvisor端口冲突按照官网demo,cadvisor使用的本地8080端口映射到默认的8080端口,但是我本地8080端口已经被占...原创 2019-09-11 16:13:39 · 2708 阅读 · 0 评论