# Can I monitor apache inside a docker container?

**URL:** <https://discuss.elastic.co/t/can-i-monitor-apache-inside-a-docker-container/224859>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 24, 2020, 2:26pm UTC](https://discuss.elastic.co/t/can-i-monitor-apache-inside-a-docker-container/224859 "2020-03-24T14:26:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [March 24, 2020, 2:26pm UTC](https://discuss.elastic.co/t/can-i-monitor-apache-inside-a-docker-container/224859/1 "2020-03-24T14:26:11Z")

</div>

Hi, I have mySQL and apache inside containers, I was wandering if I can monitor them?  
if that is true, I just have to enable Apache and mySql modules, or do I need some other configurations?

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [March 24, 2020, 4:17pm UTC](https://discuss.elastic.co/t/can-i-monitor-apache-inside-a-docker-container/224859/2 "2020-03-24T16:17:50Z")

</div>

Hi, yes this is possible using the `apache` and `mysql` modules. However, you might want to look into using Metricbeat's autodiscover feature to automatically discover these containers and start monitoring them with their respective modules: [https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-autodiscover.html](https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-autodiscover.html).

Shaunak

---

<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 21, 2020, 4:20pm UTC](https://discuss.elastic.co/t/can-i-monitor-apache-inside-a-docker-container/224859/3 "2020-04-21T16:20:27Z")

</div>

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