# Atlas Mongodb cluster not working with metricbeat

**URL:** <https://discuss.elastic.co/t/atlas-mongodb-cluster-not-working-with-metricbeat/225177>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 26, 2020, 11:29am UTC](https://discuss.elastic.co/t/atlas-mongodb-cluster-not-working-with-metricbeat/225177 "2020-03-26T11:29:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohail1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohail1/32/65109_2.png) [@Rohail1](https://discuss.elastic.co/u/Rohail1)\
**Post date:** [March 26, 2020, 11:29am UTC](https://discuss.elastic.co/t/atlas-mongodb-cluster-not-working-with-metricbeat/225177/1 "2020-03-26T11:29:19Z")

</div>

Hello, I am unable to connect my atlas cluster with metric. If I use self-hosted MongoDB URL it works fine but if I use atlas cluster it throws an error saying "no reachable servers"

---

<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 26, 2020, 5:25pm UTC](https://discuss.elastic.co/t/atlas-mongodb-cluster-not-working-with-metricbeat/225177/2 "2020-03-26T17:25:12Z")

</div>

Hi @Rohail1, welcome to the Elastic community forums!

A few questions to help us troubleshoot the issue:

1. What version of Metricbeat are you running?

2. Could you re-run Metricbeat with `-d'*'` (this will enable debug logging) and then post your complete Metricbeat log (from start up to about 20 seconds after start up) here, with any sensitive information redacted from it?

3. Are you able to use a MongoDB client from the same host where Metricbeat is running and the same configuration as the `mongodb` Metricbeat module to connect to your Atlas MongoDB cluster?

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 23, 2020, 5:25pm UTC](https://discuss.elastic.co/t/atlas-mongodb-cluster-not-working-with-metricbeat/225177/3 "2020-04-23T17:25:14Z")

</div>

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