• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with GitLab

GitLab logo

What does Opsgenie offer GitLab users?

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.

Functionality of the integration

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.

Add GitLab Integration in Opsgenie

You can add this integration from your team dashboard

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 only add this integration from your team dashboard as the Integrations page under Settings is not available in your plan.

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.

To do that,

  1. Go to your team’s dashboard from Teams,

  2. Select Integrations, and select Add integration.

Follow the rest of the steps to complete the integration.

  1. Go to Settings > Integrations. Search for GitLab and select Add

  2. Specify who is notified of GitLab alerts using the Responders field. Auto-complete suggestions are provided as you type.

  3. Copy the Webhook URL.

  4. Select Save Integration.

Configuration in GitLab

  1. In your GitLab project, click the Settings tab on the bottom left.

  2. Select Integrations from the left pane.

  3. Paste your Webhook URL you just copied into the URL field.

  4. Select Push EventsIssues EventsConfidential Issues Events and Merge Request Events from the list.

  5. Click Add webhook.

GitLab webhook

Additional Help