Opsgenie を AppOptics と統合する
AppOptics provides a simple Web API, as well as language bindings and integration with collection agents such as "statsd" and "collectd" to make it very easy to store metric data in AppOptics data store.
Appoptics は、メトリックの設定済みのしきい値を超えると Opsgenie でアラートを作成します。
Opsgenie が AppOptics ユーザーに提供するもの
Opsgenie は AppOptics と Webhook を統合しています。インテグレーションを使用して Errorception インシデントを Opsgenie の API に詳細情報とともに送信します。Opsgenie は AppOptics のアラートのディスパッチャーとして機能して、オンコール スケジュールに基づいて通知する適切な担当者を決定します。AppOptics、テキスト メッセージ (SMS)、電話、iOS、Android のプッシュ通知によって通知し、アラートが確認されるかクローズされるまでアラートをエスカレートします。
統合の機能性
AppOptics でアラートが作成されると、インテグレーションによって Opsgenie でもアラートが自動で作成されます。
AppOptics でアラートがクローズされると、Opsgenie のアラートもクローズされます。
Opsgenie で AppOptics インテグレーションを追加する
Opsgenie の Free プランまたは Essentials プランを使用している、または Jira Service Management の Standard プランで Opsgenie を使用している場合は、チーム ダッシュボードからのみこの統合を追加できます。 このプランでは、[設定] の [統合] ページが利用できません。
[チーム] に移動して自分のチームを選択します。
左側のナビゲーションで [統合] を選択し、[統合を追加] を選択します。
統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。このセクションの残りの手順に従って、統合を設定してください。
[設定] > [統合] の順に移動します。AppOptics を検索して [追加] を選択します。
[対応者] フィールドによって AppOptics アラートの通知先を指定します。入力し始めると、オートコンプリートの候補が表示されます。
[コピー] ボタンをクリックするか選択して、統合 API キーをコピーします。これは AppOptics 設定で使用します。
[Save Integration (統合の保存)] を選択します。
AppOptics での設定
AppOptics で [アカウント設定] ページに移動します。
[サービス] タブを選択します。
利用可能なサービスのリストから Opsgenie を選択します。[設定済みサービス] の横にある (+) を選択して新しいサービスの宛先を追加するか、既存のサービスをクリックして編集します。
以前にコピーした API キーを [API キー] フィールドに貼り付けます。
[サービスを作成] をクリックします。
Opsgenie アラートのチーム、タグ、受信者をカンマで区切って指定します。
You can also refer to AppOptics's support document for this integration.
ペイロードの例
JSON
{
"alert": {
"id": 4892664,
"name": "test alert",
"runbook_url": "runbook.com",
"version": 2,
"description": "test alert"
},
"trigger_time": 1424793470,
"conditions": [
{
"id": 611876,
"type": "above",
"threshold": 1,
"duration": 60
},
{
"id": 61187,
"type": "average",
"threshold": 2,
"duration": 40
}
],
"violations": {
"test-source": [
{
"metric": "cpu",
"value": 43,
"recorded_at": 1424793470,
"condition_violated": 611876
},
{
"metric": "metric1",
"value": 51,
"recorded_at": 1427793470,
"condition_violated": 611876
}
],
"source" :[
{
"metric": "metric2",
"value": 3,
"recorded_at": 1624793470,
"condition_violated": 611876
}
]
},
"metric": {
"name": "disk_read",
"type": "gauge"
},
"measurement": {
"value": 50,
"source": "test-source"
},
"measurements": [
{
"value": 50,
"source": "test-source"
}
]
}
この内容はお役に立ちましたか?