Get started with Opsgenie as a user
Learn how to configure your profile, get notifications from Opsgenie and view on-call schedules.
Opsgenie offers an integration with GitLab where pushes, merge requests, and issues in GitLab create alerts in Opsgenie. Opsgenie determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls, iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.
When a push is made to your project in GitLab, it creates an alert in Opsgenie.
When a merge request is created in your project in GitLab, it creates an alert in Opsgenie.
When a merge request is updated in your project in GitLab, it adds a note to the alert in Opsgenie.
When a merge request is closed in your project in GitLab, it closes the alert in Opsgenie.
When an issue is created in your project in GitLab, it creates an alert in Opsgenie.
When an issue is closed in your project in GitLab, it closes the alert in Opsgenie.
When an issue is updated in your project in GitLab, it adds a note to the alert in Opsgenie.
GitLab is an API-based integration. Setting it up involves the following steps:
Add a GitLab integration in Opsgenie
Configure the integration in GitLab
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 GitLab integration in Opsgenie:
Go to Settings > Integrations.
Select Add integration.
Run a search and select “Gitlab”.
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 Webhook URL.
You will use this URL while configuring the integration in Gitlab later.
Select Turn on integration.
The rules you create for the integration will work only if you turn on the integration.
In your Opsgenie project, open the Settings tab.
Select Webhooks from the left pane.
Paste the URL you copied while adding the integration in Opsgenie into URL.
Select Push, Tag Push, Issues Events, Condifential Issues Events, and Merge Request Events from the list.
Select Add webhook.
Was this helpful?