ユーザーとして Opsgenie の利用を開始する
プロフィールの設定、Opsgenie からの通知の取得、オンコール スケジュールの表示に関するすべての方法を説明します。
Compose は、メールと webhook を使用してアラートを送信します。Opsgenie に Compose アラートを転送するには、いずれかの方法が使用されます。Opsgenie でメールでアラートを作成する方法については、メール統合のドキュメントで説明されています。このドキュメントでは、Opsgenie の Compose インテグレーションを使用して Compose と Opsgenie を統合する方法について説明します。
Opsgenie は、Opsgenie サーバーにアラートを直接作成するための Compose インテグレーション用の特定の API を提供します。
Compose がアラートをトリガーすると、統合によって Opsgenie でアラートが自動で作成されます。
この統合はチーム ダッシュボードから追加可能
Opsgenie の Free または Essentials の各プランを使用している、または Jira Service Management の Standard プランで Opsgenie を使用している場合、このプランでは [設定] の [統合] ページが利用できないため、この統合はチーム ダッシュボードからのみ追加できます。
統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。
そのためには、次の手順に従います。
Teams からチーム ダッシュボードに移動します。
[統合] > [統合を追加] の順に選択します。
残りの手順に従って統合を完了します。
[設定] > [統合] の順に移動します。Compose を検索して [追加] を選択します。
[応答者] フィールドによって Compose アラートの通知先を指定します。入力し始めると、オートコンプリートの候補が表示されます。
Opsgenie エンドポイントと API キーを含む統合 URL をコピーします。
[Save Integration (統合の保存)] を選択します。
[Compose] コントロール パネルから、[アカウント] > [通知] ページを開きます。
このページから、通知のタイプとして [Webhook] を選択します。
[Webhook アラート] で、統合を保存するときにコピーされた統合 URL を [Webhook URL] フィールドに入力します。
[設定の保存] をクリックします。
5. アラートのプロパティは、Compose の [Integration / Advanced Settings (統合/詳細設定)] ページから設定します。
6. Compose データベース アラートを Opsgenie で管理して、そのアラートの機能をフル活用しましょう。
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"
}
この内容はお役に立ちましたか?