---
title: Setting up MongoDB
description: Setting up Database Monitoring on a MongoDB cluster
breadcrumbs: Docs > Database Monitoring > Setting up MongoDB
---

# Setting up MongoDB

### MongoDB versions supported{% #mongodb-versions-supported %}

| Self-hosted | MongoDB Atlas |
| ----------- | ------------- |
| MongoDB 4.4 | yes           |
| MongoDB 5.0 | yes           | yes |
| MongoDB 6.0 | yes           | yes |
| MongoDB 7.0 | yes           | yes |
| MongoDB 8.0 | yes           | yes |

For setup instructions, select your hosting type:

- [Self-hosted](https://docs.datadoghq.com/database_monitoring/setup_mongodb/selfhosted)
- [MongoDB Atlas](https://docs.datadoghq.com/database_monitoring/setup_mongodb/mongodbatlas)
