I’ve seen this on multiple machines now but it looks like extended memory stats are missing from the API but still available on the host via /sys/fs/cgroup/memory/docker//memory.stat.
jamie@virtualawesomesauce:~$ sudo curl -s --unix-socket /var/run/docker.sock http:/containers/virtualmysql/stats?stream=0 | python -mjson.tool
{
“blkio_stats”: {
“io_merged_recursive”: [],
“io_queue_recursive”: [],
“io_service_bytes_recursive”: [
{
“major”: 8,
“minor”: 0,
“op”: “Read”,
“value”: 37277696
},
{
“major”: 8,
“minor”: 0,
“op”: “Write”,
“value”: 12668928
},
{
“major”: 8,
“minor”: 0,
“op”: “Sync”,
“value”: 12668928
},
{
“major”: 8,
“minor”: 0,
“op”: “Async”,
“value”: 37277696
},
{
“major”: 8,
“minor”: 0,
“op”: “Total”,
“value”: 49946624
}
],
“io_service_time_recursive”: [],
“io_serviced_recursive”: [
{
“major”: 8,
“minor”: 0,
“op”: “Read”,
“value”: 881
},
{
“major”: 8,
“minor”: 0,
“op”: “Write”,
“value”: 32
},
{
“major”: 8,
“minor”: 0,
“op”: “Sync”,
“value”: 32
},
{
“major”: 8,
“minor”: 0,
“op”: “Async”,
“value”: 881
},
{
“major”: 8,
“minor”: 0,
“op”: “Total”,
“value”: 913
}
],
“io_time_recursive”: [],
“io_wait_time_recursive”: [],
“sectors_recursive”: []
},
“cpu_stats”: {
“cpu_usage”: {
“percpu_usage”: [
732665708,
418822007
],
“total_usage”: 1151487715,
“usage_in_kernelmode”: 660000000,
“usage_in_usermode”: 320000000
},
“system_cpu_usage”: 11881520000000,
“throttling_data”: {
“periods”: 0,
“throttled_periods”: 0,
“throttled_time”: 0
}
},
“memory_stats”: {
“failcnt”: 0,
“limit”: 2079805440,
“max_usage”: 953737216,
“stats”: null,
“usage”: 951590912
},
“networks”: {
“eth0”: {
“rx_bytes”: 648,
“rx_dropped”: 0,
“rx_errors”: 0,
“rx_packets”: 8,
“tx_bytes”: 648,
“tx_dropped”: 0,
“tx_errors”: 0,
“tx_packets”: 8
}
},
“pids_stats”: {},
“precpu_stats”: {
“cpu_usage”: {
“percpu_usage”: [
732441739,
418705363
],
“total_usage”: 1151147102,
“usage_in_kernelmode”: 660000000,
“usage_in_usermode”: 320000000
},
“system_cpu_usage”: 11879520000000,
“throttling_data”: {
“periods”: 0,
“throttled_periods”: 0,
“throttled_time”: 0
}
},
“read”: “2016-05-20T12:07:51-07:00”
}