• 使用を開始する
  • 関連ドキュメント

Opsgenie を Compose と統合する

Compose ロゴ

Opsgenie が Compose ユーザーに提供するもの

Compose sends alerts via email and using webhook. Either method is used to forward Compose alerts to Opsgenie. How to create alerts via email in Opsgenie is described in the email integration document. This document describes how to integrate Compose and Opsgenie using Opsgenie’s Compose Integration.

Opsgenie は、Compose 統合用に、Opsgenie Data Center でアラートを直接作成するための特定の API を提供します。

統合の機能性

  • Compose がアラートをトリガーすると、統合によって Opsgenie でアラートが自動で作成されます。

Opsgenie で Compose インテグレーションを追加する

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

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

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

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

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

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

  3. Opsgenie エンドポイントと API キーを含む統合 URL をコピーします。

  4. [Save Integration (統合の保存)] を選択します。

Compose における設定

  1. [Compose] コントロール パネルから、[アカウント] > [通知] ページを開きます。

  2. このページから、通知のタイプとして [Webhook] を選択します。

  3. [Webhook アラート] で、統合を保存するときにコピーされた統合 URL を [Webhook URL] フィールドに入力します。

  4. [設定の保存] をクリックします。

Screenshot_Compose アラート設定

5. アラートのプロパティは、Compose の [Integration / Advanced Settings (統合/詳細設定)] ページから設定します。
6. Compose データベース アラートを Opsgenie で管理して、そのアラートの機能をフル活用しましょう。

Compose から送信されるペイロードの例

JSON

{ "alert_type_causes": "Some common causes are: * Network connectivity interuption * Server Failure * High load on primary", "alert_type_description": "A stepdown alert is raised when the primary member in a replica set is unavailable and a secondary is promoted to primary.", "alert_type_resolution": "There is generally nothing to do to resolve this type of alert. This is the expected behavior, but you should make sure that your app is configured to handle this type of failure by using a replica set in your connection info and using safe writes. Most drivers will recover automatically from this. If not an app restart might be required.", "databases[]": "db1,db2", "message": "There was a stepdown c235.candidate.17.mongolayer.com:10235 -> c235.candidate.16.mongolayer.com:10235", "severity": "1", "source": "candidate.16.mongolayer.com:10235", "title": "stepdown alert on candidate.16.mongolayer.com:10235", "trigger_value": "The value that was triggered causing the alert. This only applies to alerts with limits.", "type": "stepdown" }

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。