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

Opsgenie を Airbrake と統合する

Airbrake ロゴ

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

Opsgenie の Airbrake インテグレーションを使用して、Airbrake インシデントを Opsgenie に転送します。Opsgenie は、オンコール スケジュールに基づいて通知する適切な担当者を決定します。メール、テキスト メッセージ (SMS)、電話、iOS、Android のプッシュ通知によって通知し、アラートが確認されるかクローズされるまでアラートをエスカレートします。

統合の機能性

Airbrake でエラー (インシデント) が取得されると、Opsgenie でアラートが作成されます。

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

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

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

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

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

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

  2. Specify who is notified of Airbrake alerts using the Responders field. Autocomplete suggestions are provided as you type.

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

  4. [統合を保存] を選択します。

Airbrake での設定

  1. Airbrake で、プロジェクトページから [インテグレーション] に移動します。

  2. [Webhook] を選択します。

  3. インテグレーションの保存時に以前コピーしたインテグレーション URL が [Webhook URL] フィールドに入力します。

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

  5. アラートのプロパティは、Airbrake の [Integration / Advanced Settings (インテグレーション / 詳細設定)] ページから設定します。

  6. 設定完了です! Airbrake アラートを Opsgenie で管理して、そのアラート機能をフル活用しましょう。

Airbrake アラート プロパティ

Opsgenie Airbrake からの Webhook メッセージの例

{ "error": { "id": 37463546, "error_message": "RuntimeError: You threw an exception for testing", "error_class": "RuntimeError", "file": "[PROJECT_ROOT]/app/controllers/pages_controller.rb", "line_number": 35, "project": { "id": 1055, "name": "AirbrakeProject" }, "last_notice": { "id": 4505303522, "request_method": "metot", "request_url": "http://airbrake.io:445/pages/exception_test", "backtrace": [ "[PROJECT_ROOT]/app/controllers/pages_controller.rb:35:in `exception_tester'", "[PROJECT_ROOT]/app/middleware/conditional_heroku_nav.rb:19:in `_call'", "[PROJECT_ROOT]/app/middleware/conditional_heroku_nav.rb:11:in `call_without_newrelic'" ] }, "environment": "production", "first_occurred_at": "2012-02-23T22:03:03Z", "last_occurred_at": "2012-03-21T08:37:15Z", "times_occurred": 118 } }

このペイロードは Opsgenie によって次のように解析されます。

{ "error_id": 37463546, "error_message": "RuntimeError: You threw an exception for testing", "file": "[PROJECT_ROOT]/app/controllers/pages_controller.rb", "line_number": 35, "project_id": 1055, "project_name": "AirbrakeProject", "environment": "production", "first_occurred_at": "2012-02-23T22:03:03Z", "last_occurred_at": "2012-03-21T08:37:15Z", "times_occurred": 118, "last_notice_request_method": "metot", "last_notice_request_url": "http://airbrake.io:445/pages/exception_test", "last_notice_backtrace": [ "[PROJECT_ROOT]/app/controllers/pages_controller.rb:35:in `exception_tester'", "[PROJECT_ROOT]/app/middleware/conditional_heroku_nav.rb:19:in `_call'", "[PROJECT_ROOT]/app/middleware/conditional_heroku_nav.rb:11:in `call_without_newrelic'" ] }

 

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

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