Hi Marco,

I think that you are mentioning http://<mesos-master>:5050/master/state
<http://mesos-master:5050/system/stats.json>

There is JIRA ticket https://issues.apache.org/jira/browse/MESOS-3568
planning to add this to mesos document.

Thanks,

Guangya

On Thu, Oct 8, 2015 at 4:44 PM, Marco Massenzio <ma...@mesosphere.io> wrote:

> Probably the most appropriate endpoint(s) would be something like
> http://mesos-master:5050/system/stats.json
> http://mesos-master:5050/metrics/snapshot
>
> for a much more basic 'health' check you can use the /health endpoint
> (this just gives you back a 200 OK if the Master/Agent are... feeling well
> :)
>
> I would recommend staying away from the /state.json (soon to be /state) as
> it demands a heavy toll on the Master and you may end up DOS'ing your own
> cluster.
>
>
> *Marco Massenzio*
>
> *Distributed Systems Engineerhttp://codetrips.com <http://codetrips.com>*
>
> On Wed, Oct 7, 2015 at 6:37 PM, Klaus Ma <kl...@cguru.net> wrote:
>
>> Hi Chong,
>>
>> I think you can use Mesos’s REST API to achieve that; please refer to the
>> following URL for more detail:
>> http://mesos.apache.org/documentation/latest/monitoring/
>>
>> ----
>> Da (Klaus), Ma (马达) | PMP® | Advisory Software Engineer
>> Platform Symphony/DCOS Development & Support, STG, IBM GCG
>> +86-10-8245 4084 | mad...@cn.ibm.com | http://www.cguru.net
>>
>> On Oct 8, 2015, at 09:04, Chong Chen <chong.ch...@huawei.com> wrote:
>>
>> Hi,
>> I want to implement a program to monitoring mesos. Is there exist any
>> APIs already implemented in mesos that I can use to get the status of the
>> Mesos? just like what  webui did: acquire the information about  the amount
>> of total resources, allocated resources, dispatched tasks, finished/lost
>> tasks….
>> How did the webui of mesos got this information? I think the fast way for
>> me  is using the same method as webui did.
>>
>> Thanks!
>>
>> Best Regards,
>> Chong
>>
>>
>>
>

Reply via email to