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

Opsgenie を Compose と統合する

Compose ロゴ

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

Compose は、メール経由のアラートと Webhook によるアラートを送信します。OpsgenieCompose アラートを転送するには、いずれかの方法が使用されます。Opsgenie でメール経由のアラートを作成する方法は、メール統合のドキュメントに記載されています。このドキュメントでは、OpsgenieCompose 統合を使用して ComposeOpsgenie を統合する方法を確認できます。

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

統合の機能性

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

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

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

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

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

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

  1. [設定] > [統合] の順に移動します。Compose を検索して [追加] を選択します。 

  2. [応答者] フィールドによって Compose アラートの通知先を指定します。入力し始めると、オートコンプリートの候補が表示されます。

  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

1 2 3 4 5 6 7 8 9 10 11 12 { "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" }

その他のヘルプ