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

learn-legacy-article-disclaimer-text

問題

  • 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