Re: Metrics for custom modules

2016-07-13 Thread Zhitao Li
Hi Joseph, That sounds great! Let me test this out. Any gotcha that I should be careful of? (internal locking, performance, conflict, etc etc). Thanks. On Wed, Jul 13, 2016 at 5:46 PM, Joseph Wu wrote: > As long as you're using libprocess to write your modules, you can add your > metrics via

Re: Metrics for custom modules

2016-07-13 Thread Joseph Wu
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 wrote: > Hi, > > I'm not sure whether this has been mentioned, but

Metrics for custom modules

2016-07-13 Thread Zhitao Li
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 ex