Get started with Opsgenie as a user
Learn how to configure your profile, get notifications from Opsgenie and view on-call schedules.
Opsgenie has a Webhook integration with MongoDB Cloud Manager. Use the integration to send MongoDB Cloud Manager incidents to Opsgenie API with detailed information. Opsgenieacts as a dispatcher for MongoDB Cloud Manager alerts, determines the right people to notify based on on-call schedules – notifies via email, text messages (SMS), phone calls, and iPhone & Android push notifications, and escalates alerts until they are acknowledged or closed.
This document describes how to configure the integration and details of data that Opsgenie receives from MongoDB Cloud Manager.
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.
MongoDB Cloud Manager is an API-based integration. Setting it up involves the following steps:
Add a MongoDB Cloud Manager integration in Opsgenie
Configure the integration in MongoDB Cloud Manager
If you're using Opsgenie's Free or Essentials plan or if you’re using Opsgenie with Jira Service Management's Standard plan, you can add this integration from your team dashboard only. The Integrations page under Settings is not available in your plan.
Go to Teams and select your team.
Select Integrations on the left navigation and then select Add integration.
Adding the integration from your team dashboard will make your team the owner of the integration. This means Opsgenie will assign the alerts received through this integration to your team only. Follow the rest of the steps in this section to set up the integration.
To add a MongoDB integration in Opsgenie:
Go to Settings > Integrations.
Select Add integration.
Run a search and select “MongoDB”.
On the next screen, enter a name for the integration.
Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.
Select Continue.
The integration is saved at this point.
Expand the Steps to configure the integration section and copy the URL.
You will use this URL while configuring the integration in MongoDB later.
Select Turn on integration.
The rules you create for the integration will work only if you turn on the integration.
In MongoDB Cloud Manager, go to Projects > Options > Integrations.
Scroll down to Webhook Settings and select Configure.
Paste the API URL you copied while adding the integration in Opsgenie into Webhook URL.
Select Save.
Learn more about alert configurations in MongoDB Cloud Manager.
Create alert payload (in JSON format)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"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"
}
Payload parsed by Opsgenie (in JSON format)
1
2
3
4
5
6
7
8
[
"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"
]
Was this helpful?