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

Opsgenie を Compose と統合する

Compose ロゴ

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

Compose は、メールと webhook を使用してアラートを送信します。OpsgenieCompose アラートを転送するには、いずれかの方法が使用されます。Opsgenie でメールでアラートを作成する方法については、メール統合のドキュメントで説明されています。このドキュメントでは、Opsgenie の Compose インテグレーションを使用して ComposeOpsgenie を統合する方法について説明します。

Opsgenie は、Opsgenie サーバーにアラートを直接作成するための Compose インテグレーション用の特定の API を提供します。

統合の機能性

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

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

この統合はチーム ダッシュボードから追加可能

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

統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。

そのためには、次の手順に従います。

  1. Teams からチーム ダッシュボードに移動します。

  2. [統合] > [統合を追加] の順に選択します。

残りの手順に従って統合を完了します。

  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" }

その他のヘルプ