As long as you're using libprocess to write your modules, you can add your metrics via `process::metrics::add(...)`. Those will be exposed via the same old `/metrics/snapshot` endpoint.
On Wed, Jul 13, 2016 at 5:39 PM, Zhitao Li <zhitaoli...@gmail.com> wrote: > Hi, > > I'm not sure whether this has been mentioned, but is it possible to reuse > Mesos's metric system for custom modules? > > For context, we are planning to turn on some agent-side modules at many > machines, but we face the question of how we'll monitor their behavior: we > can reinvent some wheels to export metrics by ourselves (or probably even > use libprocess code), but I wonder whether Mesos should provide an easier > solution to allow metrics be reported to the same metrics system of > master/agent (either merged with standard metrics, or reported separately). > > Any thought about this? > > -- > Cheers, > > Zhitao Li >