Slide 23
Slide 23 text
$ curl -s --unix-socket \
/var/run/docker.sock http://localhost/${CONTAINER}/stats?stream=false | \
jq .
[...]
"cpu_stats": {
"cpu_usage": {
"total_usage": 963481062,
"percpu_usage": [
431767249,
531713813
],
[...]
e.g. Docker stats API