mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haosdent <haosd...@gmail.com>
Subject Re: mesos per task monitoring/metrics
Date Tue, 23 Aug 2016 14:12:27 GMT
Hi, @Olivier You could get the containerId from the state endpoint of Mesos
Agent. http://mesos.apache.org/documentation/latest/endpoints/slave/state/

On Tue, Aug 23, 2016 at 3:50 PM, Olivier Sallou <olivier.sallou@irisa.fr>
wrote:

> One more question though. Using cgroups isolation, I can see mesos
> container in cAdvisor under, for example:
>
> /mesos/966e0b09-f38e-497c-afb8-0133d8fb48b1
>
>
> but where can I get the container Id
> 966e0b09-f38e-497c-afb8-0133d8fb48b1 from TaskStatus ?
>
>
> I can see in Mesos UI the job details for a URL like:
>
>
>  var / lib / mesos / slaves / b1925e13-76db-4225-a3dc-39ce65c79b3c-S0 /
> frameworks / b1925e13-76db-4225-a3dc-39ce65c79b3c-0000 / executors  /
> 274 / runs / 966e0b09-f38e-497c-afb8-0133d8fb48b1
>
>
> I can know/find all parameters but this last one.
>
>
> Thanks
>
>
> Olivier
>
>
> On 08/23/2016 09:30 AM, Olivier Sallou wrote:
> > ok,
> >
> > activating isolation with cgroups ni slave config activates detailled
> stats.
> >
> >
> > On 08/23/2016 09:23 AM, Olivier Sallou wrote:
> >> Hi,
> >>
> >> when switching to docker containerizer to unified containerizer, I lost
> >> the capacity to monitor task metrics (used cpu, used mem, ...) from
> >> cAdvisor.
> >>
> >> I tried to get stats from /monitor/statistics.json but I do not have any
> >> "live" metrics:
> >>
> >> [{"executor_id":"271","executor_name":"Command Executor (Task: 271)
> >> (Command: sh -c
> >> '\/mnt\/go-dock...')","framework_id":"b1925e13-76db-
> 4225-a3dc-39ce65c79b3c-0000","source":"271","statistics":{"
> cpus_limit":1.1,"mem_limit_bytes":2130706432,"timestamp":
> 1471936602.26916}}]
> >>
> >> I only see reserved metrics.
> >>
> >>
> >> Is there any specific config to get "live" monitoring.
> >>
> >>
> >> Thanks
> >>
> >> Olivier
> >>
>
> --
>
> gpg key id: 4096R/326D8438  (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>
>


-- 
Best Regards,
Haosdent Huang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message