Hosted Graphite と統合する
統合でできるようになること
Jira Service Management の Hosted Graphite 統合を使用して Hosted Graphite アラートを Jira Service Management に転送します。Jira Service Management では、オンコール スケジュールに基づいて通知すべき担当者を決定します。メール、テキスト メッセージ (SMS)、電話、iOS や Android のプッシュ通知による通知を行い、アラートが承認またはクローズされるまでアラートをエスカレーションします。
統合による機能
Hosted Graphite でアラートが作成されると、Jira Service Management でもアラートが作成されます。
統合をセットアップする
Hosted Graphite は API 統合です。設定は次の手順で行います。
Jira Service Management で Hosted Graphite 統合を追加する
Hosted Graphite で統合を設定する
Hosted Graphite 統合を追加する
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 で Hosted Graphite 統合を追加する方法は以下のとおりです。
[設定] > [統合] の順に移動します。
[統合を追加] を選択します。
検索を実行して「Hosted Graphite」を選択します。
次の画面で、統合の名前を入力します。
オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。
[Continue] を選択します。
この時点で、統合が保存されます。[統合を設定する手順] セクションを展開して、API キーをコピーします。
このキーは、後ほど Hosted Graphite で統合を設定する際に使用します。[統合をオンにする] を選択します。
統合のために作成したルールは、統合をオンにした場合にのみ機能します。
Hosted Graphite で統合を設定する
Hosted Graphite と Jira Service Management の統合を設定するには、次の手順を実行します。
Hosted Graphite でサイド メニューから [アラート] を選択します。
[Notification Channels (通知チャンネル)] タブに移動します。
ページの右上隅にある [+ Add Channel (+ チャンネルを追加)] を選択します。
[Opsgenie] を選択します。
通知チャンネルの名前を [名前] に入力します。
以前にコピーした API キーを [Opsgenie API key (Opsgenie API キー)] に貼り付けます。
[保存] を選択します。
Hosted Graphite から送信されるペイロードの例
アラートのペイロードを作成する
JSON
{
"name": "hostedgraphite_test_alert",
"criteria": "metric values missing for 1 minutes",
"graph": "http://i.mfhg.io/render-api/e3c33750/035359b9aefe772.png",
"value": "None",
"metric": "_test-data.servers.webserver0.requests.count",
"status": "alerting",
"backoff_minutes": false,
"info": "Instructions regarding the alert"
}
このペイロードは、Jira Service Management によって次のように解析されます。
JSON
{
"alarmName": "test",
"alarmCriteria": "metric values missing for 1 minutes",
"alarmValue": "None",
"alarmMetric": "_test-data.servers.webserver0.requests.count",
"alarmStatus": "alerting",
"alarmInfo": "Instructions regarding the alert"
}
アラートのペイロードをクローズする
JSON
{
"name": "hostedgraphite_test_alert",
"criteria": "metric values missing for 1 minutes",
"graph": "http://i.mfhg.io/render-api/e3c33750/035359b9aefe772.png",
"value": "None",
"metric": "_test-data.servers.webserver0.requests.count",
"status": "recovered",
"backoff_minutes": false,
"info": "Instructions regarding the alert"
}
このペイロードは、Jira Service Management によって次のように解析されます。
JSON
{
"alarmName": "test",
"alarmCriteria": "metric values missing for 1 minutes",
"alarmValue": "None",
"alarmMetric": "_test-data.servers.webserver0.requests.count",
"alarmStatus": "recovered",
"alarmInfo": "Instructions regarding the alert"
}
この内容はお役に立ちましたか?