Skip to content

MongoDB Atlas

Connecting Hawkeye to your MongoDB Atlas environment allows us to collect telemetry data such as database metrics, logs, and performance data. This enables you to monitor and optimize your MongoDB Atlas clusters directly from Hawkeye.

The following steps will guide you in setting up this connection.

Step 1: Create a MongoDB Atlas API Key

To connect Hawkeye to MongoDB Atlas, you’ll need to create an API key with appropriate permissions to allow Hawkeye to retrieve necessary data.

  1. Log in to MongoDB Atlas: Go to the MongoDB Atlas console and log in to your account.

    mongo

  2. Navigate to Organization Access Manager: From the Atlas dashboard, select Access Manager > Project Access.

    mongo

  3. Create a Project API Key: Click on API Keys tab and then select Create API Key.

    mongo

  4. Provide credentials:

    • Provide a description for the API key.
    • Assign appropriate roles to the API key. At minimum, grant Project Read Only to allow Hawkeye to retrieve telemetry data.

    mongo

  5. Copy the API Key: Once the API key is created, copy it. You will need this key for the Hawkeye connection setup.

    mongo

Step 2: Add MongoDB Atlas Connection to Hawkeye

With your API key ready, follow these steps to connect MongoDB Atlas to the Hawkeye dashboard.

  1. Navigate to the connections tab: On the Hawkeye dashboard, go to the Connections section and click on the New Connection card.

  2. Select MongoDB Atlas connection: From the list of available connections, choose MongoDB Atlas.

  3. Enter credentials:

    • Name: Enter a name for the connection (e.g., “MongoDB Atlas Integration”).
    • Description: Add a description for what the connection is for.
    • API Key: Paste the API key you generated in Step 1.
    • Project ID: Enter your MongoDB Atlas Project ID. You can find this in the Atlas dashboard under Project Settings.
  4. Save the connection: Verify all credentials are correct, then click the Save button.

  5. Confirm connection: If the connection is successful, the MongoDB Atlas connection card will appear in your Hawkeye dashboard, showing that the integration is active.