What isolators are you using? To get CPU usage you need to enable cgroups/cpu [1]
1: https://gist.github.com/chetan/9c519c68549b55d71709cb8cc62206ae#cgroupscpu pt., 30.06.2017, 09:59 użytkownik Thodoris Zois <[email protected]> napisał: > From the resources that Mesos allocated for a specific task, i would like > to get somehow how much the task truly used with percentage. Maybe it > wasn’t clear before, that’s why i am mentioning it. At Mesos UI for some > reason i don’t see enough info for tasks etc. They are all the time empty…. > > > > > On 30 Jun 2017, at 02:38, James Peach <[email protected]> wrote: > > > > > >> On Jun 29, 2017, at 3:53 PM, Thodoris Zois <[email protected]> wrote: > >> > >> Hello, i would like to get some metrics per task. E.g memory/cpu usage > is there any way? > >> > >> Thank you! > > > > You can use the GET_CONTAINERS agent API call < > http://mesos.apache.org/documentation/latest/operator-http-api/> to get > resource usage for a container, then match up the container to a task by > using other master and agent APIs to match the framework ID and executor ID. > > > > J > >

