Consul と統合する
統合でできるようになること
Jira Service Management の Consul 統合を使用して、詳細情報と共に Consul アラートを Jira Service Management API に送信します。Jira Service Management はこれらの Consul アラートのディスパッチャーとして機能して、オンコール スケジュールに基づいて通知する適切な担当者を決定します。メール、テキスト メッセージ (SMS)、電話、iPhone や Android のプッシュ通知による通知を行い、アラートが承認またはクローズされるまでアラートをエスカレートします。
統合による機能
Consul がアラートをトリガーすると、統合を通じて Jira Service Management でアラートが自動的に作成されます。
統合をセットアップする
Consul は API ベースの統合です。設定は次の手順で行います。
Jira Service Management で Consul 統合を追加する
Consul で統合を設定する
Consul 統合を追加する
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 で Consul 統合を追加するには、次の手順に従います。
Next to Operations in the sidebar, select More actions (), then General configuration.
Select Integrations and then Add integration.
検索を実行して「Consul」を選択します。
次の画面で、統合の名前を入力します。
オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。
[Continue] を選択します。
この時点で、統合が保存されます。[統合を設定する手順] セクションを展開して、API キーをコピーします。
このキーは、後ほど Consul で統合を設定する際に使用します。[統合をオンにする] を選択します。
統合のために作成したルールは、統合をオンにした場合にのみ機能します。
Consul で統合を設定する
Consul と Jira Service Management の統合を設定するには、次の手順に従います。
1. Consul-Alerts を Consul サーバーにインストールします。Consul-Alerts のインストール方法をご確認ください。
2. Consul-Alerts が実行されていることを確認します。
3. Jira Service Management の API キーを次のように設定します。curl -X PUT -d 'API_KEY' http://localhost:8500/v1/kv/consul-alerts/config/notifiers/opsgenie/api-key
Consul エージェントの IP とポートは異なる場合があります。
4. オプション: Jira Service Management アラートの詳細に表示するエンティティ フィールドの値を設定します。既定では「Cluster-Alert」です。curl -X PUT -d 'Consul' http://localhost:8500/v1/kv/consul-alerts/config/notifiers/opsgenie/cluster-name
5. Consul-Alerts で Jira Service Management 通知を有効にします。curl -X PUT -d 'true' http://localhost:8500/v1/kv/consul-alerts/config/notifiers/opsgenie/enabled
Consul ヘルス チェックがクリティカルになると、Jira Service Management アラートが自動的に作成されます。Consul ヘルス チェックが再び通過すると、Jira Service Management アラートは自動的にクローズされます。
これは API ベースの統合なので、カスタム優先度、ペイロード、URL、ヘッダーなどの動的 (ドラッグ可能) プロパティは使用できません。
この内容はお役に立ちましたか?