AppOptics と統合する
AppOptics は、シンプルな Web API だけでなく、言語バインディング、「statsd」や「collectd」などのコレクション エージェントとの統合を提供しており、メトリック データを AppOptics のデータストアに簡単に保存することができます。AppOptics は、メトリックの設定済みのしきい値を超えると Jira Service Management でアラートを作成します。
統合でできるようになること
Jira Service Management では、AppOptics との Webhook 統合を利用できます。この統合を使用して、AppOptics インシデントを詳細情報とともに Jira Service Management API に送信します。Jira Service Management は AppOptics アラートのディスパッチャーとして機能し、オンコール スケジュールに基づいて適切な通知先が決定されます。AppOptics、テキスト メッセージ (SMS)、電話、iOS や Android のプッシュ通知によって通知し、アラートが承認されるかクローズされるまでアラートをエスカレートします。
統合による機能
AppOptics でアラートが作成されると、統合を通じて Jira Service Management でもアラートが自動的に作成されます。
AppOptics でアラートがクローズされると、Jira Service Management のアラートもクローズされます。
統合をセットアップする
AppOptics は API ベースの統合です。設定は次の手順で行います。
Jira Service Management で AppOptics 統合を追加する
AppOptics で統合を設定する
AppOptics 統合を追加する
The following capabilities are available in Jira Service Management Premium and Enterprise:
双方向の統合
Outgoing integrations at the team level
Integrations at a site level through Settings (icon) > Products (under Jira settings) > Operations
To access Jira Service Management Premium features, you must subscribe to a Service Collection Premium or Enterprise plan.
Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team.
Jira Service Management で AppOptics 統合を追加するには、次の手順を実行します。
Next to Operations in the sidebar, select More actions (), then General configuration.
Select Integrations and then Add integration.
検索を実行して [AppOptics] を選択します。
次の画面で、統合の名前を入力します。
オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。
[Continue] を選択します。
この時点で、統合が保存されます。[統合を設定する手順] セクションを展開して、API キーをコピーします。
このキーは、後ほど AppOptics で統合を設定する際に使用します。[統合をオンにする] を選択します。
統合のために作成したルールは、統合をオンにした場合にのみ機能します。
AppOptics で統合を設定する
AppOptics と Jira Service Management の統合を設定するには、次の手順に従います。
AppOptics で、[アカウント設定] ページに移動します。
[サービス] タブに移動します。
[Available Services (利用可能なサービス)] から [Jira Service Management] を選択します。
[Configured Services (設定済みサービス)] の横にある (+) を選択して新しいサービスの宛先を追加するか、既存のサービスを選択して編集します。
以前に Jira Service Management からコピーした API キーを [API キー] に貼り付けます。
[サービスを作成] を選択します。
Jira Service Management アラートのタグと対応者をコンマで区切って指定することもできます。
ペイロードの例
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"
}
]
}
この内容はお役に立ちましたか?