Skip to content

cAdvisor can't collect the stats info from the containers of system.slice #1438

@QQYES

Description

@QQYES

Recently,we have a problem through cAdvisor 0.24,using Mesos and Marathon to control docker containers,but we find some containers start in the /system.slice directory and some containers start in the /system.slice /docker ,but containers start in the /system.slice directory the stats always be 0 including CPU and memory.And some in the /docker directory is correct in stats.
We want to know why the cAdvisor can not collect the stats info from the containers of system.slice

the code from the restful api http://127.0.0.1:8080/api/v2.1/stats?type=docker&recursive=true&count=2:

/system.slice/var-lib-docker-containers-c5c4b26a111f9502cf30cc563439ff0e9d9f3a50d571671b4527897ab5c5b837-shm.mount":{"spec":{"creation_time":"2016-08-24T04:38:24.623180605Z","aliases":["mesos-725cdbc1-f1e5-47ca-a3a2-814725315516-S10.81e58c5d-46a2-4a15-a644-feadd54c60f3","c5c4b26a111f9502cf30cc563439ff0e9d9f3a50d571671b4527897ab5c5b837"],"namespace":"docker","has_cpu":true,"cpu":{"limit":1024,"max_limit":0},"has_memory":true,"memory":{"limit":9223372036854775807,"reservation":9223372036854775807,"swap_limit":9223372036854775807},"has_custom_metrics":false,"has_network":true,"has_filesystem":true,"has_diskio":true,"image":"10.161.24.239/cadvisor/cadvisor:v0.24.0-alpha1"},"stats":[{"timestamp":"2016-08-24T08:01:48.449914053Z","cpu":{"usage":{"total":0,"per_cpu_usage":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"user":0,"system":0},"cfs":{"periods":0,"throttled_periods":0,"throttled_time":0},"load_average":0},"diskio":{},"memory":{"usage":0,"cache":0,"rss":0,"swap":0,"working_set":0,"failcnt":0,"container_data":{"pgfault":0,"pgmajfault":0},"hierarchical_data":{"pgfault":0,"pgmajfault":0}},"network":{"interfaces":[{"name":"eth0","rx_bytes":4267012,"rx_packets":54416,"rx_errors":0,"rx_dropped":0,"tx_bytes":135328535,"tx_packets":52886,"tx_errors":0,"tx_dropped":0}],"tcp":{"Established":0,"SynSent":0,"SynRecv":0,"FinWait1":0,"FinWait2":0,"TimeWait":0,"Close":0,"CloseWait":0,"LastAck":0,"Listen":0,"Closing":0},"tcp6":{"Established":0,"SynSent":0,"SynRecv":0,"FinWait1":0,"FinWait2":0,"TimeWait":0,"Close":0,"CloseWait":0,"LastAck":0,"Listen":0,"Closing":0}},"filesystem":{"totalUsageBytes":45056,"baseUsageBytes":0}},{"timestamp":"2016-08-24T08:01:49.727745631Z","cpu":{"usage":{"total":0,"per_cpu_usage":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"user":0,"system":0},"cfs":{"periods":0,"throttled_periods":0,"throttled_time":0},"load_average":0},"cpu_inst":{"usage":{"total":0,"per_cpu_usage":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"user":0,"system":0}},"diskio":{},"memory":{"usage":0,"cache":0,"rss":0,"swap":0,"working_set":0,"failcnt":0,"container_data":{"pgfault":0,"pgmajfault":0},"hierarchical_data":{"pgfault":0,"pgmajfault":0}},"network":{"interfaces":[{"name":"eth0","rx_bytes":4271611,"rx_packets":54475,"rx_errors":0,"rx_dropped":0,"tx_bytes":135517667,"tx_packets":52957,"tx_errors":0,"tx_dropped":0}],"tcp":{"Established":0,"SynSent":0,"SynRecv":0,"FinWait1":0,"FinWait2":0,"TimeWait":0,"Close":0,"CloseWait":0,"LastAck":0,"Listen":0,"Closing":0},"tcp6":{"Established":0,"SynSent":0,"SynRecv":0,"FinWait1":0,"FinWait2":0,"TimeWait":0,"Close":0,"CloseWait":0,"LastAck":0,"Listen":0,"Closing":0}},"filesystem":{"totalUsageBytes":45056,"baseUsageBytes":0}}]}}

other thing

system:
Linux resourcepool-0226-slave01 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

docker version:
Docker version 1.12.0, build 8eab29e

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions