Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How does the integration work?

When an alert is created on MongoDB Cloud Manager, an alert is created in Jira Service Management automatically through the integration.

...

When an alert is closed on MongoDB Cloud Manager, the related alert is closed in Jira Service Management.

Set up the integration

MongoDB Cloud Manager is an API-based integration. Setting it up involves the following steps:

  • Add a MongoDB Cloud Manager integration

...

  • in Jira Service Management

  • Configure the integration in MongoDB Cloud Manager

Add MongoDB integration

Info

If you're using Opsgenie's using the Free or Essentials plan, or if you’re using Opsgenie with Standard plan in Jira Service Management's Standard plan, you can only add this integration from your team dashboard as the Integrations page under Settings is not available in your team’s operations page. To access the feature through Settings (gear icon) > Products (under JIRA SETTINGS) > OPERATIONS, you need to be on Premium or Enterprise plan.

Adding the an integration from your team dashboard will make team’s operations page makes your team the owner of the integration. This means Opsgenie will assign Jira Service Management assigns the alerts received through this integration to your team only.

To do that,

  • Go to your team’s dashboard from Teams,

  • Select Integrations, and select Add integration

    .

    Follow the rest of the steps to complete the integration.

    To add a MongoDB integration in Jira Service Management:

    ...

    Learn more about alert configurations in MongoDB Cloud Manager.

    Sample payload sent from MongoDB Cloud Manager

    Create alert payload (in JSON format)

    Code Block
    {
        "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"
    }
    

    Jira Service Management parses this payload as follows (in JSON format):JSON

    Code Block
    [
          "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"
    ]

    ...