# Dockerizing TopBeat and get host Metrics

**URL:** https://discuss.elastic.co/t/dockerizing-topbeat-and-get-host-metrics/45489
**Category:** Beats
**Created:** [March 25, 2016, 10:31pm UTC](https://discuss.elastic.co/t/dockerizing-topbeat-and-get-host-metrics/45489 "2016-03-25T22:31:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shanmuga\_karna](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shanmuga\_karna](https://discuss.elastic.co/u/shanmuga_karna)
#### Post date: [March 25, 2016, 10:31pm UTC](https://discuss.elastic.co/t/dockerizing-topbeat-and-get-host-metrics/45489/1 "2016-03-25T22:31:00Z")

</div>

Hi All,

I'm trying to dockerize all the beats, to make deployments ease, and still get Host specific data and not docker specific.

1. FileBeat --\> I can mount files from the host machine

2. PacketBeat --\> By running on th host's newtwork namespace (--net=host), we can get host's network data.

3. TopBeat --\> Not sure, how to get host metrics from within a container, using topbeat.

Thanks in advance

---

<div class="post-metadata">

### Author: ![shanmuga\_karna](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shanmuga\_karna](https://discuss.elastic.co/u/shanmuga_karna)
#### Post date: [March 25, 2016, 11:24pm UTC](https://discuss.elastic.co/t/dockerizing-topbeat-and-get-host-metrics/45489/2 "2016-03-25T23:24:12Z")

</div>

`--pid=host` solved it

---

<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: [July 5, 2017, 9:54pm UTC](https://discuss.elastic.co/t/dockerizing-topbeat-and-get-host-metrics/45489/3 "2017-07-05T21:54:09Z")

</div>


