• 使用を開始する
  • 関連ドキュメント

Opsgenie を LogicMonitor と統合する

LogicMonitor ロゴ

この統合のレガシー バージョンは、 LogicMonitor REST API v1 および v2 の提供終了後は利用できなくなります。

概要

Deploy and manage monitoring tools faster and automatically with AutoDiscovery of devices. Act on infrastructure performance data using built-in and customizable dashboards, performance forecasting, and complete reporting. Use built-in workflow capabilities, including alerting routing and escalation management, to improve the IT team’s issue response and resolution time. Forward LogicMonitor alerts to Opsgenie to notify users via iPhone and Android push notifications, email, SMS, and phone calls, track the alert lifecycle, escalate alerts, etc.

統合でできるようになること

OpsgenieLogicMonitor とのネイティブ、双方向的な統合を備えています。統合を使用して LogicMonitorOpsgenie アラートを自動的に同期し、Opsgenie の豊富なアラート通知システム、エスカレーション、オンコール ローテーションのメリットが得られます。

このドキュメントでは、統合の基本機能、設定方法、OpsgenieLogicMonitor 間で交換されるデータの詳細について説明します。

統合による機能

  • LogicMonitor でアラートが作成されると、統合によって Opsgenie でもアラートが自動で作成されます。

  • アラートが LogicMonitor でクローズされると、関連するアラートが Opsgenie でもクローズします。

  • LogicMonitor でアラートが承認されると、関連するアラートが Opsgenie でも承認されます。

  • Opsgenie でアラートが承認されると、関連するアラートが LogicMonitor でも自動的に承認されます。

統合をセットアップする

LogicMonitor は双方向の統合です。次のステップに沿ってセットアップを行います。

  • OpsgenieLogicMonitor 統合を追加する

  • LogicMonitor で統合を設定する

LogicMonitor 統合を追加する

Opsgenie の Free プランまたは Essentials プランを使用している、または Jira Service Management の Standard プランで Opsgenie を使用している場合は、チーム ダッシュボードからのみこの統合を追加できます。 このプランでは、[設定] の [統合] ページが利用できません。

  1. [チーム] に移動して自分のチームを選択します。

  2. 左側のナビゲーションで [統合] を選択し、[統合を追加] を選択します。

統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。このセクションの残りの手順に従って、統合を設定してください。

OpsgenieLogicMonitor 統合を追加するには、次の手順に従います。

  1. Go to Settings > Integrations.

  2. [統合を追加] を選択します。

  3. 検索を実行して「LogicMonitor」を選択します。

  4. 次の画面で、統合の名前を入力します。

  5. オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。

  6. [Continue] を選択します。
    この時点で、統合が保存されます。

  7. [統合を設定する手順] セクションを展開して、Opsgenie のエンドポイントと API キーを含む統合 URL をコピーします。
    この URL は、後ほど LogicMonitor で統合を設定する際に使用します。

  8. Select Send alert updates back to LogicMonitor to send alert actions in Opsgenie to LogicMonitor.
    If the box is selected, then fill in the related fields. It might be a good idea to create a user in LogicMonitor that only has an "ackonly" role for sending alert actions from Opsgenie to LogicMonitor.

  9. [統合をオンにする] を選択します。
    統合のために作成したルールは、統合をオンにした場合にのみ機能します。

LogicMonitor で統合を設定する

  1. LogicMonitor で、[設定] > [統合] を選択します。

  2. LogicMonitor を検索して、[追加] > [カスタム HTTP 配信] を選択します。

  3. http://www.example.com/uri を Opsgenie で統合を追加する際にコピーした URL に置き換えます。

  4. [アラート データ] を alertData.txt の内容で更新します。

  5. [データ形式] には「フォーム データ」を選択します。

  6. [送信] を選択します。

アラート アクションをマッピングする

Opsgenie アクションと LogicMonitor アクション間 (アラートのソースが LogicMonitor の場合も同様) のマッピングを定義できます。これには LogicMonitor アカウントの追加認証が必要です。

  1. 「設定」ページで [編集] を選択して、統合を編集します。

  2. [Authenticate for sending alert updates to Logic Monitor (Logic Monitor にアラートの更新を送信するための認証)] セクションで、[Authenticate with a Logic Monitor account (Logic Monitor アカウントで認証)] チェックボックスをオンにして、それに応じてフィールドに値を入力します。

    • レガシーバージョンの LogicMonitor を使用している場合:

      • アカウント名: LogicMonitor アカウントの名前

      • ユーザー名: LogicMonitor にログインするためのユーザー名

      • パスワード: LogicMonitor にログインするためのパスワード

  3. 新しいバージョンの LogicMonitor を使用している場合:

    • アカウント名: LogicMonitor アカウントの名前

    • Logic Monitor ベアラー トークン: LogicMonitor のシステムと安全に対話し、データを取得したり、アクションを実行したりするために使用するトークン。

  4. [保存] を選択します。

LogicMonitor から送信されるペイロードの例

(JSON 形式)

{ "alertid": "LMS22", "alertstatus": "active", "datasource": "WinVolumeUsage-C:\", "datapoint": "PercentUsed", "date": "2014-05-02 14:21:40 PDT", "dsdesc": "Monitors space usage on logical volumes.", "dsidesc": null, "datapointdesc": "Percentage Used on the volume", "group": "group1,group2", "host": "opsgenie-test-server", "hostdesc": "Server used for testing OpsGenie integrations", "instance": "C:\", "level": "warning", "duration": "1465", "threshold": "10", "eventsource": "WinVolumeUsage-C:\", "eventlogfile": "Application", "eventtype": "information", "eventmsg": "Percentage used on the volume exceeded 80%", "eventlogmsg": "Remaining capacity(1456750MB) of volume C:\ is lower than 25%", "eventcode": "1847502394", "eventuser": "test-user", "value": "83", "batchdesc": "Monitors space usage on logical volumes everyday.", "hostips": "123.456.789.012", "hosturl": "https://opsgenie-test-server.net/", "service": "webservice", "alerttype": "error", "agent": "opsgenie-test-server", "checkpoint": "1879234", "hostinfo": null, "servicedetail": null, "serviceurl": "https://opsgenie-test-server.net/", "servicegroup": "Functional Testing", "clearvalue": "1" }

テスト アラートのトラブルシューティング

これらの情報アラートは、受信データがテスト目的のみであることを示します。テスト データは予想されるデータとは異なる可能性があるため、統合フローを実行せずにアラートが作成されます。

LogicMonitor リクエストを処理する際に、それがテスト リクエストであるかどうかがチェックされます。もしテスト リクエストである場合は、統合フロー (動的フィールドへの入力など) を中断して、必要なパラメーターを含むアラート リクエストを作成します。"統合" フィールドが null である場合は、DefaultAPI 統合 (削除することも、存在を保証することもできません) に設定されます。こうしたケースでは、既定 API によって作成されるアラートになります。

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。