github.com/ncodes/nomad@v0.5.7-0.20170403112158-97adf4a74fb3/website/source/docs/http/client-stats.html.md (about) 1 --- 2 layout: "http" 3 page_title: "HTTP API: /v1/client/stats" 4 sidebar_current: "docs-http-client-stats" 5 description: |- 6 The '/v1/client/stats` endpoint is used to query the actual resources consumed 7 on the node. 8 --- 9 10 # /v1/client/stats 11 12 The client `stats` endpoint is used to query the actual resources consumed on a node. 13 The API endpoint is hosted by the Nomad client and requests have to be made to 14 the nomad client whose resource usage metrics are of interest. 15 16 ## GET 17 18 <dl> 19 <dt>Description</dt> 20 <dd> 21 Query the actual resource usage of a Nomad client 22 </dd> 23 24 <dt>Method</dt> 25 <dd>GET</dd> 26 27 <dt>URL</dt> 28 <dd>`/v1/client/stats`</dd> 29 30 <dt>Returns</dt> 31 <dd> 32 33 ```javascript 34 { 35 "CPU": [ 36 { 37 "CPU": "cpu0", 38 "Idle": 89.2156862745098, 39 "System": 4.901960784313726, 40 "Total": 10.784313725490197, 41 "User": 5.88235294117647 42 }, 43 { 44 "CPU": "cpu1", 45 "Idle": 100, 46 "System": 0, 47 "Total": 0, 48 "User": 0 49 }, 50 { 51 "CPU": "cpu2", 52 "Idle": 94.05940594059405, 53 "System": 2.9702970297029703, 54 "Total": 5.9405940594059405, 55 "User": 2.9702970297029703 56 }, 57 { 58 "CPU": "cpu3", 59 "Idle": 99.00990099009901, 60 "System": 0, 61 "Total": 0.9900990099009901, 62 "User": 0.9900990099009901 63 } 64 ], 65 "CPUTicksConsumed": 119.5762958648806, 66 "DiskStats": [ 67 { 68 "Available": 16997969920, 69 "Device": "/dev/disk1", 70 "InodesUsedPercent": 85.84777164286838, 71 "Mountpoint": "/", 72 "Size": 120108089344, 73 "Used": 102847975424, 74 "UsedPercent": 85.62951586835626 75 } 76 ], 77 "Memory": { 78 "Available": 3724746752, 79 "Free": 2446233600, 80 "Total": 8589934592, 81 "Used": 4865187840 82 }, 83 "Timestamp": 1465839167993064200, 84 "Uptime": 101149 85 } 86 ``` 87 </dd> 88 </dl>