You can check out Satellite: https://github.com/twosigma/satellite which is
a complete monitoring & metrics system for Mesos. It avoids the need to
snoop the ZK connection by instead discovering that info via the rest API.

On Tue, Jul 7, 2015 at 9:03 AM Donald Laidlaw <donlaid...@me.com> wrote:

> Has anyone ever developed Java code to detect the mesos masters and
> leader, given a zookeeper connection?
>
> The reason I ask is because I would like to monitor mesos to report
> various metrics reported by the master. This requires detecting and
> tracking the leading master to query its /metrics/snapshot REST endpoint.
>
> Thanks,
> -Don

Reply via email to