# Track mesos run time stats with Metricbeat

**URL:** <https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 15, 2017, 10:47pm UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776 "2017-03-15T22:47:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ab-agni](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@ab-agni](https://discuss.elastic.co/u/ab-agni)\
**Post date:** [March 15, 2017, 10:47pm UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/1 "2017-03-15T22:47:01Z")

</div>

Hello - I have configured metric beat to read container info from Docker containers. I want to now capture mesos cluster runtime metrics into metric beat. Is there a way to do this? I used the docker.sock file for metrics.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [March 16, 2017, 5:54pm UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/2 "2017-03-16T17:54:26Z")

</div>

Can you tell me more about Mesos? How does Mesos expose this information? Is there an HTTP endpoint for the node that exposes this data? Probably we could add a mesos module to capture this data.

What types metrics would it collect? Have examples?

---

<div class="post-metadata">

**Author:** ![ab-agni](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@ab-agni](https://discuss.elastic.co/u/ab-agni)\
**Post date:** [March 16, 2017, 8:54pm UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/3 "2017-03-16T20:54:25Z")

</div>

> [@andrewkroh](#):
>
> Can you tell me more about Mesos? How does Mesos expose this information? Is there an HTTP endpoint for the node that exposes this data? Probably we could add a mesos module to capture this data.
> 
> What types metrics would it collect? Have examples?

Here is the info on Apache Mesos Metrics:

> **[Apache Mesos](https://mesos.apache.org/documentation/latest/monitoring/)**
>
> Apache Mesos abstracts resources away from machines,
> enabling fault-tolerant and elastic distributed systems
> to easily be built and run effectively.

Do let me know if this helps. Thanks for responding.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [March 16, 2017, 11:01pm UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/4 "2017-03-16T23:01:26Z")

</div>

It's great that the API is documented so well. It would probably be pretty easy to implement a new module to monitor those metrics. Please open a new issue in the Github repo to track this enhancement request.

If you are interesting in contributing we have a [dev guide](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-developer-guide.html) for Metricbeat. You could use the `golang/expvar` [metricset](https://github.com/elastic/beats/blob/master/metricbeat/module/golang/expvar/expvar.go) as an example because it does nearly the same thing -- fetch JSON from a REST endpoint.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 17, 2017, 9:25am UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/5 "2017-03-17T09:25:42Z")

</div>

+1 on a mesos metricbeat module. In case you don't have time for a PR yourself, perhaps you can open an enhancement request on github with all the data / links above.

---

<div class="post-metadata">

**Author:** ![ab-agni](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@ab-agni](https://discuss.elastic.co/u/ab-agni)\
**Post date:** [March 17, 2017, 3:04pm UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/6 "2017-03-17T15:04:19Z")

</div>

Is it possible to extract that info via Zookeeper? I see a module of Zookeeper in Metricbeat and Zookeeper takes care of scheduling container within Mesos/Marathon.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 20, 2017, 9:44am UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/7 "2017-03-20T09:44:54Z")

</div>

The zookeeper modules it to monitor zookeeper itself, not to retrieve data. But we have a similar case for the Kafka module where some data must be (indirectly) fetched from Zookeeper. I'm ok if a kubernetes module would connect to zookeeper to get the meta data in case zookeeper is always around inside kubernetes.

---

<div class="post-metadata">

**Author:** ![surajs](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@surajs](https://discuss.elastic.co/u/surajs)\
**Post date:** [April 5, 2017, 8:36pm UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/8 "2017-04-05T20:36:37Z")

</div>

@ab-agni, Have you created an issue to track this ? I'd be willing to help to get this implemented since we need a similar module for tracking our mesos stats.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 5, 2017, 10:47pm UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/9 "2017-04-05T22:47:08Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [April 6, 2017, 8:16am UTC](https://discuss.elastic.co/t/track-mesos-run-time-stats-with-metricbeat/78776/10 "2017-04-06T08:16:17Z")

</div>

@surajs There is no Github for a metricbeat mesos module yet. Feel free to open one on Github.
