1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
curl -s --unix-socket /var/run/docker.sock http:/v1.24/containers/xxx/stats | jq ."memory_stats" "memory_stats": { "usage": 14913536, "max_usage": 15183872, "stats": { "active_anon": 14835712, "active_file": 0, "cache": 77824, "dirty": 0, "hierarchical_memory_limit": 101205622784, "hierarchical_memsw_limit": 9223372036854772000, "inactive_anon": 4096, "inactive_file": 73728, ... }
"memory_stats": { "usage": 14405632, "max_usage": 14508032, "stats": { "active_anon": 14397440, "active_file": 0, "cache": 8192, "dirty": 0, "hierarchical_memory_limit": 101205622784, "hierarchical_memsw_limit": 9223372036854772000, "inactive_anon": 4096, "inactive_file": 4096, ... }
"memory_stats": { "usage": 26644480, "max_usage": 31801344, "stats": { "active_anon": 22810624, "active_file": 790528, "cache": 3833856, "dirty": 0, "hierarchical_memory_limit": 101205622784, "hierarchical_memsw_limit": 9223372036854772000, "inactive_anon": 0, "inactive_file": 3043328, ... }
"memory_stats": { "usage": 40153088, "max_usage": 90615808, "stats": { "active_anon": 35123200, "active_file": 1372160, "cache": 5029888, "dirty": 0, "hierarchical_memory_limit": 101205622784, "hierarchical_memsw_limit": 9223372036854772000, "inactive_anon": 0, "inactive_file": 3657728, ... }
"memory_stats": { "usage": 10342400, "max_usage": 12390400, "stats": { "active_anon": 8704000, "active_file": 241664, "cache": 1638400, "dirty": 0, "hierarchical_memory_limit": 101205622784, "hierarchical_memsw_limit": 9223372036854772000, "inactive_anon": 0, "inactive_file": 1396736, ... }
"memory_stats": { "usage": 5845127168, "max_usage": 22050988032, "stats": { "active_anon": 31576064, "active_file": 3778052096, "cache": 5813551104, "dirty": 0, "hierarchical_memory_limit": 101205622784, "hierarchical_memsw_limit": 9223372036854772000, "inactive_anon": 0, "inactive_file": 2035499008, ... }
"memory_stats": { "usage": 13250560, "max_usage": 34791424, "stats": { "active_anon": 12070912, "active_file": 45056, "cache": 1179648, "dirty": 0, "hierarchical_memory_limit": 101205622784, "hierarchical_memsw_limit": 9223372036854772000, "inactive_anon": 0, "inactive_file": 1134592, ... }
"memory_stats": { "usage": 50724864, "max_usage": 124682240, "stats": { "active_anon": 23502848, "active_file": 13864960, "cache": 41435136, "dirty": 0, "hierarchical_memory_limit": 101205622784, "hierarchical_memsw_limit": 9223372036854772000, "inactive_anon": 6836224, "inactive_file": 6520832, ... }
|