Opsgenie を Dynatrace AppMon と統合する
Opsgenie が Dynatrace AppMon ユーザーに提供するもの
Opsgenie は、 Dynatrace AppMon との強力な双方向インテグレーションを提供します。Dynatrace AppMon で新しいインシデントが作成されると、インシデントに関する詳しい情報を含む、対応する Opsgenie アラートが自動的に作成されます。Opsgenie は、オンコールローテーション、スケジューリング機能、アラートエスカレーションを含む高度な通知を提供し、Dynatrace AppMon の顧客に最適なインシデント管理を保証します。
統合の機能性
Dynatrace AppMon でインシデントが作成されると、Opsgenie でアラートが作成されます。
インシデントが Dynatrace AppMon でクローズされると、関連するアラートは Opsgenie で自動的にクローズされます。
[Dynatrace AppMon へのアラート更新の送信] が有効になっている場合、Dynatrace AppMon インテグレーションによって作成されたアラートに対して OpsGenie で選択されたアクションが実行されると、Dynatrace AppMon のアクションが Dynatrace AppMon で実行されます。
Opsgenie で Dynatrace AppMon インテグレーションを追加する
Opsgenie の Free プランまたは Essentials プランを使用している、または Jira Service Management の Standard プランで Opsgenie を使用している場合は、チーム ダッシュボードからのみこの統合を追加できます。 このプランでは、[設定] の [統合] ページが利用できません。
[チーム] に移動して自分のチームを選択します。
左側のナビゲーションで [統合] を選択し、[統合を追加] を選択します。
統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。このセクションの残りの手順に従って、統合を設定してください。
Go to Settings > Integrations. Search for Dynatrace AppMon and select Add.
Specify who is notified of Dynatrace AppMon alerts using the Responders field. Autocomplete suggestions are provided as you type.
Dynatrace AppMon プラグインの設定時に使用する統合 URL をコピーします。
[Save Integration (統合の保存)] を選択します。
Dynatrace AppMon での設定
まず、Opsgenie Dynatrace AppMon プラグインをダウンロードします。
Dynatrace クライアントに移動し、[ツール] メニューから [プラグインの管理] を選択します。
3. 次に、開いたウィンドウで [Install Plugin (プラグインのインストール)] をクリックします。
4. 以前にダウンロードした [Opsgenie プラグイン JAR] を選択し、[開く] をクリックします
5. 次に、表示されたプラグインから [Opsgenie プラグイン] を選択し、[プロパティ] をクリックします。
6. 前にコピーしたインテグレーション URL を、[プラグインのプロパティ] ウィンドウの [Webhook URL] フィールドに貼り付けます。このフィールドは、インシデント ルールの編集中に異なるインテグレーションを使用するように設定されます。
7. Enter the team names that exist in Opsgenie so that alerts can be created in Opsgenie for those specific teams only. This field can be kept empty and configured during Edit Incident Rule in order to assign different alerts to different teams in Opsgenie.
8. [OK] をクリックし、左側のメニューから [インシデント] にアクセスします。
9. [インシデント] で、Opsgenie アラートに使用するインシデントを選択し、ドロップダウン メニューから [インシデント ルールの編集] を選択します。
10. [アクション] タブの [詳細設定] をクリックします。
11. 次に、[追加] をクリックします。
12. Select Dynatrace Opsgenie Plugin from the listed plugins and click Add. Fields in Properties part to be configured here in order to use different integration or assign alerts to different teams in Opsgenie.
13. [実行] オプションとして [インシデント開始] を選択し、[OK] をクリックします。
OEC を介した統合
または、Opsgenie の OEC と Dynatrace AppMon スクリプトを使用して、Dynatrace AppMon でアクションを実行します。これによって、独自のスクリプトや機能をデプロイして提供された機能を変更し、カスタマイズしたアクションを Dynatrace AppMon 上で実行できます。
Dynatrace AppMon インテグレーション パッケージを使用するには、以下のセクションのステップを最後まで実行します。
OEC の最新バージョンをダウンロードする
To download the latest version of Dynatrace AppMon package, please use readme file of oec-scripts repository.
インストール
Red Hat ベースのディストリビューションの場合
次のコマンドを実行します。
rpm -i opsgenie-dynatraceappmon-<your_version>.rpm
Debian ベースのディストリビューションの場合
次のコマンドを実行します。
dpkg -i opsgenie-dynatraceappmon-<your_version>.deb
Windows の場合
OEC パッケージを含む opsgenie integration の zip ファイルをディレクトリ内に解凍します (C:\opsgenie\oec は優先パスです)。
便宜上、この解凍パスを %OEC_HOME% として参照できます。解凍場所の値を実行予定 OEC_HOME というシステム環境変数を作成して昇格した Powershell セッションを開き、次のコマンドを入力します。
テキスト
[Environment]::SetEnvironmentVariable("OEC_HOME", <Path where you extracted OEC package>, 'Machine')
OEC の実行方法について詳しくは、OEC の実行のドキュメントを参照してください。
OEC 用の Dynatrace AppMon インテグレーションの設定
OEC ユーティリティを使用するには、[OEC 経由で送信] を有効にします。
Other configurations regarding Dynatrace AppMon can be done either via integration page or OEC configuration file config.json. The configuration via the integration page precedes the configuration file.
OEC 設定
To be able to execute actions in Dynatrace AppMon, OEC gets the configuration parameters from the configuration file /home/opsgenie/oec/conf/config.json (Linux) or %OEC_HOME%\conf\config.json (Windows).
設定パラメーター
apiKey – 上記で作成した Dynatrace AppMon インテグレーションから API キーをコピーします。
userName – Dynatrace AppMon のユーザー名。
password – Dynatrace AppMon ユーザーのパスワード。
url – アクションが送信される Dynatrace AppMon の URL (ex:https://localhost:8021)。
profileName – 対応するシステムプロファイルの名前。
The package that you downloaded also includes OEC utility which is located at path /usr/local/bin/OpsgenieEdgeConnector (Linux) or %OEC_HOME%\OpsgenieEdgeConnector.exe (Windows) and the script that is needed to be run by OEC which is under /home/opsgenie/oec/scripts/actionExecutor.py (Linux) or %OEC_HOME%\scripts\actionExecutor.py (Windows). After the configuration of OEC is done, you need to run it. In order to learn more about how to run OEC, you can refer to the Running OEC documentation.
Dynatrace AppMon の設定
Dynatrace サーバーに移動し、左側のメニューからに [ユーザー] を選択します。
2. [ユーザー] ウィンドウで、ユーザーのロールを選択します。
3. このユーザー ロールの権限を確認し、ユーザー ロールにインシデントの分析、インシデントの管理、Web サービス インターフェイス アクセスがない場合は追加します。
OEC に送信されるパラメーターの例
JSON
{
"type":"DynatraceAppMon",
"alertId":"0e321daf-6532-4277-a61c-83d90dea9969",
"customerId":"d17aae0e-7730-4788-bbd5-a306816287d3",
"action":"Acknowledge",
"mappedActionV2":
{
"name":"inProgressIncident",
"extraField":""
},
"integrationId":"2bdcf8c9-a423-4efd-957c-07ee7de236ea",
"integrationName":"Dynatrace AppMon",
"integrationType":"DynatraceAppMon",
"sendViaOEC":true,
"profileName":"",
"incidentRule":"",
"userName":"",
"password":"",
"url":"",
"state":"InProgress",
"alias":"b324f7e2-c747-47bb-83d5-17b6a8eafaf8"
}
この内容はお役に立ちましたか?