Azure App Services Java のトレース
Dockerfileを設定することで、 Java や、 Kotlin などの Java 仮想マシンベースの言語で記述された Azure App-Services向けに、 Instana ( AutoTrace )を設定できます。
詳細については、 Instana および AutoTrace をご覧ください。
サポートされるランタイム
- JVM 1.8 およびそれ以上。
の構成
準備
Azure のApp-Servicesセンサー が、App-Servicesの監視用に設定されていることを確認してください。 Azure App-Servicesセンサーは、 Instana が Azure App-Serviceランタイム内部からは収集できない、バージョン情報や一部のランタイムメトリクスに関する必要な情報を収集します。
トレースの使用可能化
Azure App-Services上で JVM ベースのアプリケーションのトレースを有効にするには、Dockerfileに以下の設定を追加してください:
注:Instana ( Azure )エージェントは、環境変数を設定してからでないと、アプリケーションの監視を開始しません。 後でこれらの環境変数を設定する場合は、変更を反映させるために Azure App-Servicesを再起動してください。
COPY --from=containers.instana.io/instana/release/azure/app-service/jvm:latest /instana /instana
ENV JAVA_TOOL_OPTIONS="-javaagent:/instana/instana-azure-collector.jar"
ENV INSTANA_ENDPOINT_URL=<This is your [serverless monitoring endpoint](../../../setup_and_manage/endpoints_and_keys.html#endpoints-for-serverless-monitoring). Make sure to use the correct value for your region that starts with `https://serverless-`.>
ENV INSTANA_AGENT_KEY=<Your [agent key](../../../setup_and_manage/endpoints_and_keys.html#agent-key).>
ENV ENV_AZURE_APP_SERVICE_CLIENT_ID=<Client ID of the Azure App-Services which needs to be monitored>
ENV ENV_AZURE_APP_SERVICE_CLIENT_SCERET=<Client sceret of the Azure App-Services which needs to be monitored>
ENV ENV_AZURE_APP_SERVICE_TENANT_ID= <Tenant ID of the Azure App-Services which needs to be monitored>