Opsgenie を APImetrics と統合する
Opsgenie が APImetrics ユーザーに提供するもの
Opsgenie の APImetrics インテグレーションを使用して、APImetrics 通知を Opsgenie に転送します。Opsgenie は、オンコール スケジュールに基づいて通知する適切な担当者を決定します。メール、テキスト メッセージ (SMS)、電話、iOS、Android のプッシュ通知によって通知して、アラートが確認されるかクローズされるまでアラートをエスカレートします。
統合の機能性
API 呼び出しエラーまたは警告が APImetrics でキャプチャされると、Opsgenie でアラートが作成されます。
Opsgenie で APImetrics インテグレーションを追加する
Opsgenie の Free プランまたは Essentials プランを使用している、または Jira Service Management の Standard プランで Opsgenie を使用している場合は、チーム ダッシュボードからのみこの統合を追加できます。 このプランでは、[設定] の [統合] ページが利用できません。
[チーム] に移動して自分のチームを選択します。
左側のナビゲーションで [統合] を選択し、[統合を追加] を選択します。
統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。このセクションの残りの手順に従って、統合を設定してください。
Go to Settings > Integrations. Search for APImetrics and select Add.
Specify who is notified of APImetrics notifications using the Responders field. Autocomplete suggestions are provided as you type.
Opsgenie のエンドポイントと API キーを含む統合 URL をコピーします。
[Save Integration (統合の保存)] を選択します。
APIMetrics での設定
APImetrics で [アラート & Webhook] ページに移動します。
[一般] を選択します。
[有効化] がオンになっていることを確認します。
[Trigger alerts (トリガー アラート)] が [すべて選択] として選択されます。
[保存] をクリックします。
Opsgenie APImetrics からの Webhook メッセージの例
JSON
{
"response_size": 0,
"location_id": "public_googleuscentral1",
"result_class": "WARNING",
"call_id": "agpzfnZpYXRlc3RzchcLEgpUZXN0U2V0dXAyGICAsJ7Bl7UKDA",
"result_url": "http://client.apimetrics.io/tests/result/agpzfnZpYXRlc3RzchgLEgtUZXN0UmVzdWx0MxiAgLCe1LCjCQw/",
"result": "DOWNLOAD_ERROR",
"context": {
"_result_category": "WARNING",
"_result_streak": 1,
"_notification": {
"category": "WARNING",
"owners": [
"agpzfnZpYXRlc3RzchELEgRVc2VyGICAsO6ThqAKDA"
],
"viewed_by": [],
"title": "[WARNING]: APImetrics: All Failures: Test 2018-05-11 13:46:46.075200",
"created": "2018-05-11T13:47:06.393630Z",
"last_update": "2018-05-11T13:47:06.484100Z",
"references": [
"agpzfnZpYXRlc3RzchcLEgpUZXN0U2V0dXAyGICAsJ7Bl7UKDA",
"agpzfnZpYXRlc3RzchgLEgtUZXN0UmVzdWx0MxiAgLCe1LCjCQw"
],
"description": "\n<p>\nAPI Call <a href=\"http://client.apimetrics.io/tests/test/agpzfnZpYXRlc3RzchcLEgpUZXN0U2V0dXAyGICAsJ7Bl7UKDA/\">\"Test 2018-05-11 13:46:46.075200\"</a> has failed :\n<ul>\n<li><b>We could not connect to the API.</b></li>\n\n<li>Calling GET https://fhjpvdm2yutb.runscope.net%09</li>\n<li>Checking for connection issue...</li>\n<li>... no problem found.</li>\n<li>Couldn't resolve host. The given remote host was not resolved.</li>\n<li>We could not connect to the API.</li>\n<li>Couldn't resolve host 'fhjpvdm2yutb.runscope.net%09'</li>\n\n</ul>\n</p>\n\n\n</p>\n\n<p>\nView details here:\n<a href=\"http://client.apimetrics.io/tests/result/agpzfnZpYXRlc3RzchgLEgtUZXN0UmVzdWx0MxiAgLCe1LCjCQw/\">http://client.apimetrics.io/tests/result/agpzfnZpYXRlc3RzchgLEgtUZXN0UmVzdWx0MxiAgLCe1LCjCQw/</a>\n</p>\n\n<p>Sincerely,<br>\nAPImetrics Team\n</p>\n"
}
},
"result_id": "agpzfnZpYXRlc3RzchgLEgtUZXN0UmVzdWx0MxiAgLCe1LCjCQw",
"call_url": "http://client.apimetrics.io/tests/test/agpzfnZpYXRlc3RzchcLEgpUZXN0U2V0dXAyGICAsJ7Bl7UKDA/",
"response_time": 0
}
この内容はお役に立ちましたか?