# MongoDB Atlas Integration

[MongoDB Atlas](https://www.mongodb.com/) is a fully-managed cloud database that handles all the complexity of deploying, managing, and deployments to the preferred cloud service provider (AWS , Azure, and GCP). With the MongoDB Atlas integration, alerts about replica lag, slow queries, or resource caps are forwarded to on-call engineers via ilert. These technical alerts trigger escalation policies and deliver necessary context, helping teams maintain database performance and reliability.

## In ilert: Create a MongoDB Atlas alert source

1. Go to **Alert sources** --> **Alert sources** and click on **Create new alert source**

   <figure><img src="/files/rmL9OoRxcWnDwcJZQm4Y" alt=""><figcaption></figcaption></figure>
2. Search for **MongoDB Atlas** in the search field, click on the MongoDB Atlas tile and click on **Next**.

   <figure><img src="/files/1WoRRYB5U40PbeMJ7Hit" alt=""><figcaption></figcaption></figure>
3. Give your alert source a name, optionally assign teams and click **Next**.
4. Select an **escalation policy** by creating a new one or assigning an existing one.

   <figure><img src="/files/y4Bakf2apGhBN56U8ZPR" alt=""><figcaption></figcaption></figure>
5. Select you [Alert grouping](/alerting/configure-alerting/alert-sources.md#alert-grouping) preference and click **Continue setup**. You may click **Do not group alerts** for now and change it later.

   <figure><img src="/files/nTlB0ZCIW1SP3dj6P9nO" alt=""><figcaption></figcaption></figure>
6. The next page show additional settings such as customer alert templates or notification prioritiy. Click on **Finish setup** for now.
7. On the final page, an API key and / or webhook URL will be generated that you will need later in this guide.

   <figure><img src="/files/iFF3BpyuIYMi49K1j7uk" alt=""><figcaption></figcaption></figure>

## In MongoDB Atlas

1. In the Project page, click the **Bell (Notification) Icon** on top right.

![](/files/1iTcHRxUIyTfJRk9IDaI)

2. Add Webhook Settings in Integration if it was not configured, by clicking **Integrations** and add the Webhook Settings (there can only be one Webhook).

![](/files/ik19SvcYTsbugPy2AlEA)

3. Create the Alert by navigating to **Alert -> Add New Alert**. From here any alerts can be added, and make sure that it sends the Alert to the Webhook.

![](/files/pqP8PmdNWHDoX20WDA7O)

4. If the Alert has been configured, it should show up in the **Alert Settings** tab and the Alert should be created in ilert.

![](/files/KIqPEJ3XzlQZrZgFjcmq)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ilert.com/integrations/inbound-integrations/mongodbatlas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
