# Apm Configuration with MongoDb Pod Kubernetes

**URL:** <https://discuss.elastic.co/t/apm-configuration-with-mongodb-pod-kubernetes/339432>\
**Category:** APM\
**Tags:** dotnet, java\
**Created:** [July 27, 2023, 12:27pm UTC](https://discuss.elastic.co/t/apm-configuration-with-mongodb-pod-kubernetes/339432 "2023-07-27T12:27:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)\
**Post date:** [July 27, 2023, 12:27pm UTC](https://discuss.elastic.co/t/apm-configuration-with-mongodb-pod-kubernetes/339432/1 "2023-07-27T12:27:24Z")

</div>

Hi Team,

It would be helpful if anyone could help me track MongoDb pods in Kubernetes. The APM server is up and running in the ELK cluster, but the agent needs to be running with MongoDB. If there is any documentation regarding the integration of APM agent in a mongodb yml file, that would be helpful.

MongoDb version 6.0.8  
APM 8.8.1

Thanks

---

<div class="post-metadata">

**Author:** ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)\
**Post date:** [July 31, 2023, 7:29am UTC](https://discuss.elastic.co/t/apm-configuration-with-mongodb-pod-kubernetes/339432/2 "2023-07-31T07:29:03Z")

</div>

Anyone can please help.

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [July 31, 2023, 9:54am UTC](https://discuss.elastic.co/t/apm-configuration-with-mongodb-pod-kubernetes/339432/3 "2023-07-31T09:54:58Z")

</div>

The APM agents do not support monitoring the MongoDB instances itself. They do however support monitoring client applications accessing the MongoDB.

To monitor the MongoDB instances, you can use the [MongoDB elastic agent integration](https://docs.elastic.co/en/integrations/mongodb).

---

<div class="post-metadata">

**Author:** ![rachit](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rachit](https://discuss.elastic.co/u/rachit)\
**Post date:** [July 31, 2023, 10:11am UTC](https://discuss.elastic.co/t/apm-configuration-with-mongodb-pod-kubernetes/339432/4 "2023-07-31T10:11:02Z")

</div>

Thanks Jonas for reply and what about Kafka ?

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [July 31, 2023, 10:14am UTC](https://discuss.elastic.co/t/apm-configuration-with-mongodb-pod-kubernetes/339432/5 "2023-07-31T10:14:36Z")

</div>

Same for Kafka: The APM agents allow monitoring of client applications talking to kafka, for monitoring Kafka itself there's an [elastic agent integration](https://docs.elastic.co/integrations/kafka).

---

<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:** [August 28, 2023, 10:15am UTC](https://discuss.elastic.co/t/apm-configuration-with-mongodb-pod-kubernetes/339432/6 "2023-08-28T10:15:19Z")

</div>

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