BMC TrueSight Pulse と統合する
この記事では、Jira Service Management Cloud の一部のお客様に段階的に展開されている、Jira Service Management でネイティブに利用できる新しいアラート機能を取り上げています。ご利用のサイトにはまだ表示されていないか、利用できない可能性があります。
統合でできるようになること
BMC TrueSight Pulse は、アラームの通知を送信します。BMC TrueSight Pulse 統合によって、Jira Service Management はこれらのアラームのディスパッチャーとして機能し、オンコール スケジュールに基づいて通知すべき担当者を決定します。メール、テキスト メッセージ(SMS)、電話、iPhone や Android のプッシュ通知による通知を行い、アラートが承認またはクローズされるまでアラートをエスカレートします。
統合による機能
BMC TrueSight Pulse でアラートが作成されると、統合を通じて Jira Service Management でアラートが自動的に作成されます。
統合をセットアップする
BMC TrueSight Pulse は API 統合です。セットアップは次の手順で行います。
Jira Service Management で BMC TrueSight Pulse 統合を追加する
BMC TrueSight Pulse で統合を設定する
BMC TrueSight Pulse 統合を追加する
Bidirectional integrations aren’t supported in Free and Standard plans. All the other integrations are supported at a team level in Free and Standard; however, for their outgoing part to work, you need to upgrade to a higher plan. To add any integration at a site level through Settings
(gear icon) > Products
(under JIRA SETTINGS) > OPERATIONS
, you need to be either on Premium or Enterprise.
統合をチームの運用ページから追加すると、そのチームが統合の所有者になります。つまり、Jira Service Management は、この統合を通じて受信したアラートをチームにのみ割り当てます。
Jira Service Management で BMC TrueSight Pulse 統合を追加するには、次の手順を実行します。
チームの運用ページに移動します。
左側のナビゲーション パネルで、[統合] > [統合を追加] の順に選択します。
「BMC TrueSight Pulse」を検索して、選択します。
次の画面で、統合の名前を入力します。
オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。
[Continue] を選択します。
この時点で、統合が保存されます。[統合を設定する手順] セクションを展開して、API キーをコピーします。
このキーは、後ほど BMC TrueSight Pulse の統合を設定する際に使用します。[統合をオンにする] を選択します。
統合のために作成したルールは、統合をオンにした場合にのみ機能します。
BMC TrueSight Pulse で統合を設定する
BMC TrueSight Pulse と Jira Service Management 統合を設定するには、次の手順を実行します。
[設定] > [アクション] の順に移動します。
[アクションを追加] > [Jira Service Management] の順に選択します。
[名前] に「Opsgenie」と入力します。
先ほどコピーした API キーを [API キー] に貼り付けます。
[保存] を選択します。
[設定] > [アラーム] の順に移動します。
新しいアラームを追加するか、既存のアラームを編集します。
[アクション] で Opsgenie アクションを追加します。
アラームによって監視されるグループ内の各サーバーの通知を受信するには、[すべての変更に対して通知] を選択します。
BMC TrueSight Pulse から送信されるペイロードの例
アラート ペイロード (JSON 形式) を作成する
{
"alarmName": "CPU usage is high",
"status": "TRIGGERED",
"metric": {
"id": "cpu",
"name": "CPU utilization",
"type": "percent"
},
"affectedServers": {
"boundary": {
"isSet": true,
"hostname": "boundary",
"aggregate": "avg",
"metric": "CPU utilization",
"value": 0.027916727272727274,
"threshold": 0.02,
"time": 1421887800000,
"link": "https://premium.boundary.com/home/1829/standard?ival=60&marker=1421887800000!cpu",
"text": {
"isSet": true,
"serverName": "boundary",
"link": "https://premium.boundary.com/home/1829/standard?ival=60&marker=1421887800000!cpu",
"labelHTML": "Server boundary's avg CPU utilization is 2.8% which is greater than the threshold of 2.0%",
"labelText": "Server boundary's avg CPU utilization is 2.8% which is greater than the threshold of 2.0%"
}
}
},
"boundary2": {
"isSet": true,
"hostname": "boundary2",
"aggregate": "avg",
"metric": "CPU utilization",
"value": 0.027916727272727274,
"threshold": 0.02,
"time": 1421887800000,
"link": "https://premium.boundary.com/home/1829/standard?ival=60&marker=1421887800000!cpu",
"text": {
"isSet": true,
"serverName": "boundary2",
"link": "https://premium.boundary.com/home/1829/standard?ival=60&marker=1421887800000!cpu",
"labelHTML": "Server boundary's label",
"labelText": "Server boundary's avg CPU utilization is 2.8% which is greater than the threshold of 2.0%"
}
},
"resolvedServers": {
"boundary": {
"isSet": false,
"hostname": "boundary",
"aggregate": "avg",
"metric": "CPU utilization",
"value": 0.004986516666666667,
"threshold": 0.02,
"time": 1421887380000,
"text": {
"isSet": false,
"serverName": "boundary",
"labelHTML": "Server boundary's avg CPU utilization has returned to the acceptable 0.5%",
"labelText": "Server boundary's avg CPU utilization has returned to the acceptable 0.5%",
"link": "https://premium.boundary.com/home/1829/standard?ival=60&marker=1421887380000!cpu"
}
}
}
}
このペイロードは、Jira Service Management によって次のように解析されます。
(JSON 形式)
{
"alarmName": "CPU usage is high",
"status": "TRIGGERED",
"metricId": "cpu",
"metricName": "CPU utilization",
"type": "percent",
"affectedServers": {
"boundary": {
"isSet": true,
"hostname": "boundary",
"aggregate": "avg",
"metric": "CPU utilization",
"value": 0.027916727272727274,
"threshold": 0.02,
"time": 1421887800000,
"link": "https://premium.boundary.com/home/1829/standard?ival=60&marker=1421887800000!cpu",
"text": {
"isSet": true,
"serverName": "boundary",
"link": "https://premium.boundary.com/home/1829/standard?ival=60&marker=1421887800000!cpu",
"labelHTML": "Server boundary's avg CPU utilization is 2.8% which is greater than the threshold of 2.0%",
"labelText": "Server boundary's avg CPU utilization is 2.8% which is greater than the threshold of 2.0%"
}
}
},
"resolvedServers": {
"boundary": {
"isSet": false,
"hostname": "boundary",
"aggregate": "avg",
"metric": "CPU utilization",
"value": 0.004986516666666667,
"threshold": 0.02,
"time": 1421887380000,
"text": {
"isSet": false,
"serverName": "boundary",
"labelHTML": "Server boundary's avg CPU utilization has returned to the acceptable 0.5%",
"labelText": "Server boundary's avg CPU utilization has returned to the acceptable 0.5%",
"link": "https://premium.boundary.com/home/1829/standard?ival=60&marker=1421887380000!cpu"
}
}
}
}
この内容はお役に立ちましたか?