You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Thodoris Zois <zo...@ics.forth.gr> on 2017/06/29 22:53:17 UTC
Mesos-Metrics per task
Hello, i would like to get some metrics per task. E.g memory/cpu usage is there any way?
Thank you!
Re: Mesos-Metrics per task
Posted by Tomek Janiszewski <ja...@gmail.com>.
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 <zo...@ics.forth.gr> 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 <jo...@gmail.com> wrote:
> >
> >
> >> On Jun 29, 2017, at 3:53 PM, Thodoris Zois <zo...@ics.forth.gr> 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
Posted by Thodoris Zois <zo...@ics.forth.gr>.
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 <jo...@gmail.com> wrote:
>
>
>> On Jun 29, 2017, at 3:53 PM, Thodoris Zois <zo...@ics.forth.gr> 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
Posted by James Peach <jo...@gmail.com>.
> On Jun 29, 2017, at 3:53 PM, Thodoris Zois <zo...@ics.forth.gr> 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
Posted by Tomek Janiszewski <ja...@gmail.com>.
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 <zo...@ics.forth.gr> napisał:
> Hello, i would like to get some metrics per task. E.g memory/cpu usage is
> there any way?
>
> Thank you!
>