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 > > >