Legacy Knowledge Base
公開されました Jul. 2, 2025

Dynatrace で環境に基づいてインスタンスを区別する方法

Written By

Péter Simonyi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • Dynatrace が複数の環境で有効になっている場合、どのインスタンスがどの環境に属しているかを確認すると便利です。

Environment

  • Liferay Experience Cloud - 自己管理型

解決策

インスタンスを本番環境からのものとしてマークするには:

1. DT_CUSTOM_PROP プロパティを Liferay サービスの LCP.json に追加します

"env": {
"LCP_PROJECT_MONITOR_DYNATRACE_TENANT": "MyDTTenant",
"LCP_PROJECT_MONITOR_DYNATRACE_TOKEN": "MyDTToken",
"DT_CUSTOM_PROP": "environment=prd"
}
2. デプロイを行う
3. Dynatrace に移動します -> 設定 -> プロセスとコンテナー -> プロセス グループの名前付け
4. [新しいルールを追加] をクリックします
5. ルール名とグループ名の形式を入力してください
6. 条件の下で、作成されたプロパティ: 環境を選択し、prd と等しくなるように構成します。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base