Get Cgroup statistics
Get a more accurate view of CPU statistics from control groups (Cgroup) if available.
Query parameters
-
pretty
boolean If you append
?pretty=true
to the request, the JSON returned will be pretty formatted. Use it for debugging only!
GET
/_node/stats/os
curl \
--request GET 'http://api.example.com/_node/stats/os' \
--user "username:password"
Response examples (200)
{
"os": {
"cgroup": {
"cpu": {
"stat": {
"time_throttled_nanos": 581617440755,
"number_of_elapsed_periods": 4157,
"number_of_times_throttled": 460
},
"control_group": "/elastic1",
"cfs_quota_micros": 800000,
"cfs_period_micros": 1000000
},
"cpuacct": {
"usage_nanos": 378477588075,
"control_group": "/elastic1"
}
}
}
}