diff --git a/website/source/docs/http/client-allocation-stats.html.md b/website/source/docs/http/client-allocation-stats.html.md index 999897a09..5b47332f7 100644 --- a/website/source/docs/http/client-allocation-stats.html.md +++ b/website/source/docs/http/client-allocation-stats.html.md @@ -1,6 +1,6 @@ --- layout: "http" -page_title: "HTTP API: /v1/client/allocation/allocation-id/stats" +page_title: "HTTP API: /v1/client/allocation/stats" sidebar_current: "docs-http-client-allocation-stats" description: |- The '/v1/client/allocation//stats` endpoint is used to query the actual resources consumed @@ -30,51 +30,107 @@ the nomad client whose resource usage metrics are of interest.
Returns
- ``` - { - "ResourceUsage": { - "CpuStats": { - "Measured": [ - "System Mode", - "User Mode", - "Percent" - ], - "Percent": 105.77854560628487, - "SystemMode": 6.860067935411291, - "ThrottledPeriods": 0, - "ThrottledTime": 0, - "TotalTicks": 714.0051828424228, - "UserMode": 98.9184820888787 + + ```javascript + { + "ResourceUsage": { + "CpuStats": { + "Measured": [ + "System Mode", + "User Mode", + "Percent" + ], + "Percent": 105.77854560628487, + "SystemMode": 6.860067935411291, + "ThrottledPeriods": 0, + "ThrottledTime": 0, + "TotalTicks": 714.0051828424228, + "UserMode": 98.9184820888787 + }, + "MemoryStats": { + "Cache": 0, + "KernelMaxUsage": 0, + "KernelUsage": 0, + "MaxUsage": 0, + "Measured": [ + "RSS", + "Swap" + ], + "RSS": 14098432, + "Swap": 0 + } }, - "MemoryStats": { - "Cache": 0, - "KernelMaxUsage": 0, - "KernelUsage": 0, - "MaxUsage": 0, - "Measured": [ - "RSS", - "Swap" - ], - "RSS": 14098432, - "Swap": 0 - } - }, - "Tasks": { - "redis": { - "Pids": { - "27072": { + "Tasks": { + "redis": { + "Pids": { + "27072": { + "CpuStats": { + "Measured": [ + "System Mode", + "User Mode", + "Percent" + ], + "Percent": 6.8607999603563385, + "SystemMode": 5.880684245133524, + "ThrottledPeriods": 0, + "ThrottledTime": 0, + "TotalTicks": 0, + "UserMode": 0.9801144039714172 + }, + "MemoryStats": { + "Cache": 0, + "KernelMaxUsage": 0, + "KernelUsage": 0, + "MaxUsage": 0, + "Measured": [ + "RSS", + "Swap" + ], + "RSS": 13418496, + "Swap": 0 + } + }, + "27073": { + "CpuStats": { + "Measured": [ + "System Mode", + "User Mode", + "Percent" + ], + "Percent": 98.91774564592852, + "SystemMode": 0.9793836902777665, + "ThrottledPeriods": 0, + "ThrottledTime": 0, + "TotalTicks": 0, + "UserMode": 97.93836768490729 + }, + "MemoryStats": { + "Cache": 0, + "KernelMaxUsage": 0, + "KernelUsage": 0, + "MaxUsage": 0, + "Measured": [ + "RSS", + "Swap" + ], + "RSS": 679936, + "Swap": 0 + } + } + }, + "ResourceUsage": { "CpuStats": { "Measured": [ "System Mode", "User Mode", "Percent" ], - "Percent": 6.8607999603563385, - "SystemMode": 5.880684245133524, + "Percent": 105.77854560628487, + "SystemMode": 6.860067935411291, "ThrottledPeriods": 0, "ThrottledTime": 0, - "TotalTicks": 0, - "UserMode": 0.9801144039714172 + "TotalTicks": 714.0051828424228, + "UserMode": 98.9184820888787 }, "MemoryStats": { "Cache": 0, @@ -85,70 +141,15 @@ the nomad client whose resource usage metrics are of interest. "RSS", "Swap" ], - "RSS": 13418496, + "RSS": 14098432, "Swap": 0 } }, - "27073": { - "CpuStats": { - "Measured": [ - "System Mode", - "User Mode", - "Percent" - ], - "Percent": 98.91774564592852, - "SystemMode": 0.9793836902777665, - "ThrottledPeriods": 0, - "ThrottledTime": 0, - "TotalTicks": 0, - "UserMode": 97.93836768490729 - }, - "MemoryStats": { - "Cache": 0, - "KernelMaxUsage": 0, - "KernelUsage": 0, - "MaxUsage": 0, - "Measured": [ - "RSS", - "Swap" - ], - "RSS": 679936, - "Swap": 0 - } - } - }, - "ResourceUsage": { - "CpuStats": { - "Measured": [ - "System Mode", - "User Mode", - "Percent" - ], - "Percent": 105.77854560628487, - "SystemMode": 6.860067935411291, - "ThrottledPeriods": 0, - "ThrottledTime": 0, - "TotalTicks": 714.0051828424228, - "UserMode": 98.9184820888787 - }, - "MemoryStats": { - "Cache": 0, - "KernelMaxUsage": 0, - "KernelUsage": 0, - "MaxUsage": 0, - "Measured": [ - "RSS", - "Swap" - ], - "RSS": 14098432, - "Swap": 0 - } - }, - "Timestamp": 1465865820750959600 - } - }, - "Timestamp": 1465865820750959600 - } + "Timestamp": 1465865820750959600 + } + }, + "Timestamp": 1465865820750959600 + } ```
diff --git a/website/source/docs/http/client-stats.html.md b/website/source/docs/http/client-stats.html.md index 792b682bf..e89d43873 100644 --- a/website/source/docs/http/client-stats.html.md +++ b/website/source/docs/http/client-stats.html.md @@ -30,7 +30,8 @@ the nomad client whose resource usage metrics are of interest.
Returns
- ``` + + ```javascript { "CPU": [ { diff --git a/website/source/layouts/http.erb b/website/source/layouts/http.erb index 6e5d5e760..fbfbb66d1 100644 --- a/website/source/layouts/http.erb +++ b/website/source/layouts/http.erb @@ -108,7 +108,7 @@ > - /v1/client/allocation/allocation-id/stats + /v1/client/allocation/stats