MongoDB Cloud Manager Integration

MongoDB Cloud Manager  makes it easy to set up, operate, and scale your MongoDB deployments in the cloud. OpsGenie is an alert and notification management solution that is highly complementary to MongoDB Cloud Manager's incident mechanism.

What does OpsGenie have to offer for MongoDB Cloud Manager users? 

OpsGenie has a webhook integration with MongoDB Cloud Manager. Using the integration, MongoDB Cloud Manager sends incidents to OpsGenie API, with detailed information. OpsGenie acts as a dispatcher for MongoDB Cloud Manager alerts, determining the right people to notify based on on-call schedules, using email, text messages (SMS), phone calls and iPhone & Android push notifications, and escalating alerts until the alert is acknowledged or closed.

This document describes how to configure the integration and details of data that OpsGenie receives from MongoDB Cloud Manager.


Functionality of the integration

  • When an alert is created on MongoDB Cloud Manager, an alert is created in OpsGenie automatically through the integration.
  • When an alert is closed on MongoDB Cloud Manager, the related alert is closed in OpsGenie.

Configuring OpsGenie side of the integration

  1. Please create an OpsGenie account if you haven't done already.
  2. Go to OpsGenie MongoDB Cloud Manager Integration page,
  3. Specify who should be notified for MongoDB Cloud Manager alerts using the "Teams" and "Recipients" fields. Auto-complete suggestions will be provided as you type. 
  4. Copy the API key by clicking on the copy button or selecting.
  5. Click on "Save Integration".

Configuration in MongoDB Cloud Manager

  1. In MongoDB Cloud Manager, click Settings from the navigation bar
  2. Select "Group Settings" from the side menu
  3. Scroll down to "Webhook Settings"
  4. Paste API URL into Webhook URL field
  5. Click Save
  6. For alert configurations in MongoDB Cloud, you may go to Alert Configuration

Sample payload sent from MongoDB Cloud Manager

Create Alert payload:

{
    "alertConfigId": "5770e05ae4b096e0e2c23ca0",
    "created": "2016-06-28T13:26:23Z",
    "eventTypeName": "MONITORING_AGENT_DOWN",
    "groupId": "5770d0ede4b0ca29d1781ccd",
    "id": "57727affe4b0a7dc53fb9429",
    "links": [
        {
            "href": "https://cloud.mongodb.com/api/public/v1.0/groups/5770d0ede4b0ca29d1781ccd/alerts/57727affe4b0a7dc53fb9429",
            "rel": "self"
        }
    ],
    "status": "OPEN",
    "typeName": "AGENT",
    "updated": "2016-06-28T13:26:23Z"
}

This payload is parsed by OpsGenie as:

[
      "title": "[MongoDB Cloud] Alert for : MONITORING_AGENT_DOWN",
      "description": "
            Event Type : MONITORING_AGENT_DOWN
            Status : OPEN
            Created : 2016-06-28T13:26:23Z",
      "links": "https://cloud.mongodb.com/api/public/v1.0/groups/5770d0ede4b0ca29d1781ccd/alerts/57727affe4b0a7dc53fb9429"
]

Sample alert