# MongoDB Atlas

MongoDB Atlas integration allows you to connect your MongoDB Atlas clusters to Firefly. This integration enables Firefly to discover and track your MongoDB Atlas assets, including clusters, databases, and configuration details. This integration is particularly useful for tracking database-as-a-service (DBaaS) assets alongside your other infrastructure components.

## Prerequisites

* MongoDB Atlas account with administrative access.
* Ability to create API keys with Organization Read Only permissions.
* Access to MongoDB Atlas API endpoints.
* Required credentials:
  * API Public Key.
  * API Private Key.
  * Project ID.

## Setup Procedure

1. Log in to your MongoDB Atlas account at <https://cloud.mongodb.com/>.
2. From the left menu, select **Access Manager**.
3. Select your Organization.
4. From the top menu, select **API Keys > Create API Key**.
5. Enter a descriptive name for your API key.
6. In Organization Permissions, select **Organization Read Only** and click **Next**.
7. Copy both the Public Key and Private Key.
8. In Firefly:
   * Click **Settings > Integrations**.
   * Click **Add New > MongoDB Atlas**.
   * Enter a descriptive name in the Nickname field.
   * Paste your Public Key and Private Key.
   * Click **Next**.
   * Click **Done**.

## Configuration Details

* Firefly scans every 8 hours by default for SaaS data.
* Your MongoDB Atlas configurations list will stay updated automatically.
* You can enforce IaC or policies on your MongoDB Atlas assets.
* Supports monitoring of MongoDB Atlas clusters, databases, and configuration details.


---

# 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.firefly.ai/integrations/data-sources/mongodb-atlas.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.
