Opsgenie を Lightstep と統合する
Opsgenie が Lightstep ユーザーに提供するもの
Opsgenie の Lightstep 統合を使用して、Lightstep 通知を Opsgenie に転送します。Opsgenie は、オンコール スケジュールに基づいて通知する適切な担当者を決定します。メール、テキスト メッセージ (SMS)、電話、iOS、Android のプッシュ通知によって通知し、アラートが確認されるかクローズされるまでアラートをエスカレートします。
統合の機能性
Lightstep は、サービスレベルアラート (SLA) が違反または解決されたときに JSON 通知を送信します。これにより Opsgenie にアラートが作成されます。
Opsgenie で Lightstep 統合を追加する
Opsgenie の Free プランまたは Essentials プランを使用している、または Jira Service Management の Standard プランで Opsgenie を使用している場合は、チーム ダッシュボードからのみこの統合を追加できます。 このプランでは、[設定] の [統合] ページが利用できません。
[チーム] に移動して自分のチームを選択します。
左側のナビゲーションで [統合] を選択し、[統合を追加] を選択します。
統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。このセクションの残りの手順に従って、統合を設定してください。
1. Go to Settings > Integrations. Search for “ServiceNow Cloud Observability“ and select Add.
2. 統合バリアントで、「Lightstep」を選択します。
統合アラートの場合は、「ServiceNow Cloud Observability」統合バリアントを選択してください。ServiceNow Cloud Observability と統合する方法をご覧ください。
3. Specify who is notified of Lightstep notifications using the Responders field. Autocomplete suggestions are provided as you type.
4. Opsgenie のエンドポイントと API キーを含む統合 URL をコピーします。
5. [統合を保存] を選択します。
Lightstep での設定
In Lightstep, navigate to the Destinations page by clicking Monitoring: Destinations in the nav bar.
[新しいメッセージの送信先] ドロップダウン ボタンをクリックし、[Webhook] を選択します。
Lightstep 統合を保存している間に、Opsgenie からコピーした統合 URL を URL フィールドに入力します。
[作成] をクリックします。
設定完了です!Opsgenie で Lightstep 通知を管理し、すべてのアラート機能を活用できるようになりました。
Opsgenie Lightstep からの Webhook メッセージの例
JSON
{
"grouping-id":"21a2_1030_2020-11-06T17:53:01Z",
"timestamp":"2020-11-06T17:53:01.434454188Z",
"title":"Alert Triggered",,
"project":{
"text": "demo",
"href": "https://app.lightstep.com/demo"
},
"saved-search":{
"text":"component:\"android\" operation:\"/api/make-payment\"",
"href": "https://app.lightstep.com/demo/stream/VvF37s1J"
},
"live-view":{
"text":"Go to Explorer",
"href":"https://app.lightstep.com/demo/explorer?q=component%3A%22android%22+operation%3A%22%2Fapi%2Fmake-payment%22"
},
"payloads":[
{
"type":"condition-violated",
"subtitle":{
"text":"lat(95) > 4s",
"href":"https://app.lightstep.com/demo/stream/VvF37s1J?selected_condition_id=cBTPjq85"
},
"exemplars":[
{
"start":"2020-11-06T17:51:16.650381Z",
"end":"2020-11-06T17:51:21.440972Z",
"is-error":false,
"href":"https://app.lightstep.com/demo/trace?at_micros=1604685081440972&selected_span_guid=6c9f6f0da1070105&trace_handle=CIWCnIja4dvPbBIGNDY4NzUxKAIyDAiUmpb9BRDIjZC2AjoOc3RyZWFtc190cmFjZXM%3D&utm_source=webhook"
},
{
"start":"2020-11-06T17:51:14.338421Z",
"end":"2020-11-06T17:51:19.803192Z",
"is-error":false,
"href":"https://app.lightstep.com/demo/trace?at_micros=1604685079803192&selected_span_guid=5eb482849f71b789&trace_handle=CInvxvvJ0KDaXhIGNDY4NzUxKAIyDAiSmpb9BRCIyq-hAToOc3RyZWFtc190cmFjZXM%3D&utm_source=webhook"
}
],
"ls-info":{
"Actual Value":{
"ActualValue":"4.218855s"
},
"Expression":"p95 is above 4.00s over the last 2.0m"
},
"custom-data":{
}
}
]
}
この内容はお役に立ちましたか?