Microsoft Azure AutoScale と統合する
統合でできるようになること
Azure Autoscale 統合では、詳細情報とともに Azure アラートが Jira Service Management API に送信されます。Jira Service Management は、Azure Autoscale によって生成されたアラートのディスパッチャーとして機能します。Jira Service Management では、オンコール スケジュールとエスカレーションに基づいて通知すべきユーザーを決定し、メール、テキスト メッセージ (SMS)、電話、プッシュ通知による通知を行います。
統合による機能
Azure Autoscale でアラートが作成されると、統合を通じて Jira Service Management でアラートが自動的に作成されます。
統合をセットアップする
Azure Autoscale は API ベースの統合です。設定は次の手順で行います。
Jira Service Management で Azure Autoscale 統合を追加する
Azure Autoscale で統合を設定する
Azure Autoscale 統合を追加する
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 で Azure Autoscale 統合を追加するには、次の手順を実行します。
Next to Operations in the sidebar, select More actions (), then General configuration.
Select Integrations and then Add integration.
検索を実行して「Azure AutoScale」を選択します。
次の画面で、統合の名前を入力します。
オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。
[Continue] を選択します。
この時点で、統合が保存されます。[統合を設定する手順] セクションを展開して、Jira Service Management のエンドポイントと API キーを含む統合 URL をコピーします。
この URL は、後ほど Azure で統合を設定する際に使用します。[統合をオンにする] を選択します。
統合のために作成したルールは、統合をオンにした場合にのみ機能します。
Azure で統合を設定する
Azure ポータルで [監視] を選択します。
[設定] セクションで [AutoScale] を選択します。
アラートを生成するリソースを選択します。
オートスケールを有効にします。
オートスケール設定を行います。
Jira Service Management で統合を追加する際にコピーした URL を [通知] タブの [Webhook] に貼り付けます。
ルールを保存します。
Azure Autoscale から送信されたペイロードのサンプル
アラート ペイロード (JSON 形式) を作成する
{
"version": "1.0",
"status": "Activated",
"operation": "Scale In",
"context": {
"timestamp": "2016-03-11T07:31:04.5834118Z",
"id": "/subscriptions/s1/resourceGroups/rg1/providers/microsoft.insights/autoscalesettings/myautoscaleSetting",
"name": "myautoscaleSetting",
"details": "Autoscale successfully started scale operation for resource 'MyCSRole' from capacity '3' to capacity '2'",
"subscriptionId": "s1",
"resourceGroupName": "rg1",
"resourceName": "MyCSRole",
"resourceType": "microsoft.classiccompute/domainnames/slots/roles",
"resourceId": "/subscriptions/s1/resourceGroups/rg1/providers/microsoft.classicCompute/domainNames/myCloudService/slots/Production/roles/MyCSRole",
"portalLink": "https://portal.azure.com/#resource/subscriptions/s1/resourceGroups/rg1/providers/microsoft.classicCompute/domainNames/myCloudService",
"oldCapacity": "3",
"newCapacity": "2"
},
"properties": {
"key1": "value1",
"key2": "value2"
}
}
Jira Service Management はペイロードを次のように解析します。
(JSON 形式)
{
"version":"1.0",
"status":"Activated",
"operation":"Scale In",
"timestamp":"2016-03-11T07:31:04.5834118Z",
"id":"/subscriptions/s1/resourceGroups/rg1/providers/microsoft.insights/autoscalesettings/myautoscaleSetting",
"name":"myautoscaleSetting",
"details":"Autoscale successfully started scale operation for resource 'MyCSRole' from capacity '3' to capacity '2'",
"subscription_id":"s1",
"resource_group_name":"rg1",
"resource_name":"MyCSRole",
"resource_type":"microsoft.classiccompute/domainnames/slots/roles",
"resource_id":"/subscriptions/s1/resourceGroups/rg1/providers/microsoft.classicCompute/domainNames/myCloudService/slots/Production/roles/MyCSRole",
"portal_link":"https://portal.azure.com/#resource/subscriptions/s1/resourceGroups/rg1/providers/microsoft.classicCompute/domainNames/myCloudService",
"old_capacity":"3",
"new_capacity":"2",
"key1":"value1",
"key2":"value2"
}
この内容はお役に立ちましたか?