# Monitoring remote container processes

**URL:** https://discuss.elastic.co/t/monitoring-remote-container-processes/183600
**Category:** Beats
**Tags:** metricbeat
**Created:** [May 30, 2019, 7:54pm UTC](https://discuss.elastic.co/t/monitoring-remote-container-processes/183600 "2019-05-30T19:54:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![butchkelley](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@butchkelley](https://discuss.elastic.co/u/butchkelley)
#### Post date: [May 30, 2019, 7:54pm UTC](https://discuss.elastic.co/t/monitoring-remote-container-processes/183600/1 "2019-05-30T19:54:20Z")

</div>

Hello,

I have Metricbeat deployed in a dedicated Docker container monitoring CPU, Memory and I/O on numerous other containers running on the same VM. Data is collected from the other containers via /var/run/docker.sock as explained in the "Running Metricbeat on Docker" guide.

My question is, can I monitor processes on these remote containers via /var/run/docker.sock or am I forced to run Metricbeat in each of these other containers to get process info?

Thanks,  
Butch

---

<div class="post-metadata">

### Author: ![butchkelley](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@butchkelley](https://discuss.elastic.co/u/butchkelley)
#### Post date: [May 30, 2019, 7:57pm UTC](https://discuss.elastic.co/t/monitoring-remote-container-processes/183600/2 "2019-05-30T19:57:27Z")

</div>

Sorry, forgot to mention that I'm running Metricbeat 6.7 and using the Docker module.

---

<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: [June 4, 2019, 7:09am UTC](https://discuss.elastic.co/t/monitoring-remote-container-processes/183600/3 "2019-06-04T07:09:21Z")

</div>

Can you elaborate on what processes you would like to monitor? Are you thinking about monitoring mysql (just an example) in a mysql container or all processes inside this mysql container?

---

<div class="post-metadata">

### Author: ![butchkelley](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@butchkelley](https://discuss.elastic.co/u/butchkelley)
#### Post date: [June 4, 2019, 7:21pm UTC](https://discuss.elastic.co/t/monitoring-remote-container-processes/183600/4 "2019-06-04T19:21:50Z")

</div>

Thanks for your response -

I'm interested in simply verifying that a few processes are active on the HOST from Metricbeat running in a Docker container. For example, I may want to make sure crond is running on the host and generate an email if it's not running.

My plan is to write a watcher to verify a specific process exists in the list of processes sent from Metricbeat to Elasticsearch and generate an email if not.

Thanks,  
Butch

---

<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 2, 2019, 7:25pm UTC](https://discuss.elastic.co/t/monitoring-remote-container-processes/183600/5 "2019-07-02T19:25:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
