• 製品
  • 使用を開始する
  • 関連ドキュメント
  • リソース

Opsgenie を GitLab と統合する

GitLab ロゴ

概要

What does the integration offer?

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.

How does the integration work?

  • 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.

Set up the integration

GitLab is an API-based integration. Setting it up involves the following steps:

  • Add a GitLab integration in Opsgenie

  • Configure the integration in GitLab

Add a GitLab integration

Opsgenie の Free プランまたは Essentials プランを使用している、または Jira Service Management の Standard プランで Opsgenie を使用している場合は、チーム ダッシュボードからのみこの統合を追加できます。このプランでは、[設定] の [統合] ページが利用できません。

  1. [チーム] に移動して自分のチームを選択します。

  2. 左側のナビゲーションで [統合] を選択し、[統合を追加] を選択します。

統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。このセクションの残りの手順に従って、統合を設定してください。

To add a GitLab integration in Opsgenie:

  1. Go to Settings > Integrations.

  2. Select Add integration.

  3. Run a search and select “Gitlab”.

  4. 次の画面で、統合の名前を入力します。

  5. オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。

  6. [続行] を選択します。
    この時点で、統合が保存されます。

  7. 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.

  8. [統合をオンにする] を選択します。
    統合のために作成したルールは、統合をオンにした場合にのみ機能します。

Configure the integration in Opsgenie

  1. In your Opsgenie project, open the Settings tab.

  2. 左側のペインから [Webhook] を選択します。

  3. Paste the URL you copied while adding the integration in Opsgenie into URL.

  4. Select Push, Tag Push, Issues Events, Condifential Issues Events, and Merge Request Events from the list.

  5. Select Add webhook.

GitLab Webhook

その他のヘルプ