Re: Mesos-Metrics per task

2017-06-30 Thread Tomek Janiszewski
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  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  wrote:
> >
> >
> >> On Jun 29, 2017, at 3:53 PM, Thodoris Zois  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
>
>


Re: Mesos-Metrics per task

2017-06-30 Thread Thodoris Zois
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  wrote:
> 
> 
>> On Jun 29, 2017, at 3:53 PM, Thodoris Zois  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 
>  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



Re: Mesos-Metrics per task

2017-06-29 Thread James Peach

> On Jun 29, 2017, at 3:53 PM, Thodoris Zois  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 
 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

Re: Mesos-Metrics per task

2017-06-29 Thread Tomek Janiszewski
You can capture it for Mesos API. Take a look at Mesos UI to see how it's
doing it or use Diamond Mesos Collector [1] to query Mesos API and push
metrics to metrics store.

1:
https://github.com/python-diamond/Diamond/blob/master/src/collectors/mesos/mesos.py

pt., 30.06.2017, 00:53 użytkownik Thodoris Zois  napisał:

> Hello, i would like to get some metrics per task. E.g memory/cpu usage is
> there any way?
>
> Thank you!
>


Mesos-Metrics per task

2017-06-29 Thread Thodoris Zois
Hello, i would like to get some metrics per task. E.g memory/cpu usage is there 
any way? 

Thank you!