Since Azure Spring Apps is a fully managed hosting platform, applications are deployed into a sandboxed environment that doesn't allow direct access to the underlying operating system.
See below how you can integrate OneAgent with your Azure Spring Apps application to monitor your Spring Apps workloads with Dynatrace.
Prepare your environment in Azure
Determine the values for the required environment variables
Add the environment variables to your application
In Azure Portal, create an Azure Spring Apps instance.
In the new Azure Spring Apps instance, create an application that you want to report to Dynatrace by running the command below.
Be sure to replace the placeholders (<...>
) with your own values.
az spring app create --name <your-application-name> --is-public true -s <your-resource-name> -g <your-resource-group-name>
To set up OneAgent integration with your Azure Spring Apps instance, you need to configure three environment variables:
DT_TENANT
DT_TENANTTOKEN
DT_CONNECTION_POINT
.Before you begin, collect the following information:
The value for DT_TENANT
is your Dynatrace environment ID.
To determine the values for DT_TENANTTOKEN
and DT_CONNECTION_POINT
, make an API request to the Deployment API - GET connectivity information for OneAgent endpoint. The values you need are returned as tenantToken
and communicationEndpoints
.
You can submit the call to your environment URL (SaaS or Managed) or an Environment ActiveGate URL.
Dynatrace SaaS:
curl https://<your-environment-id>.live.dynatrace.com/api/v1/deployment/installer/agent/connectioninfo?Api-Token=<your_PaaS_token>
Replace:
<your-environment-id>
with your Dynatrace environment ID<your_PaaS_token>
with your PaaS tokenDynatrace Managed:
curl https://<your-domain>/e/<your-environment-id>/api/v1/deployment/installer/agent/connectioninfo?Api-Token=<your_PaaS_token>
Replace:
<your-domain>
with your Managed deployment domain<your-environment-id>
with your Dynatrace environment ID<your_PaaS_token>
with your PaaS tokenEnvironment ActiveGate:
curl https://<your-activegate-domain>/e/<your-environment-id>/api/v1/deployment/installer/agent/connectioninfo?Api-Token=<your_PaaS_token>
Replace
<your-activegate-domain>
with your ActiveGate domain<your-environment-id>
with your Dynatrace environment ID<your_PaaS_token>
with your PaaS tokenOnce you have the values for the environment variables required for OneAgent integration, you can add the respective key/value pairs to your application either on Azure Portal, or in the Azure CLI. See the instructions below for each of these options.
Optionally, you can customize the built-in rules for process group detection by setting another environment variable, DT_CLUSTER_ID
. The value can be the name of the process group you want to see in Dynatrace. See Process group detection for details.
Once you add the environment variables to your application, Dynatrace starts collecting data from it. To view data for your Azure Spring Apps application, go to Services or Services Classic (latest Dynatrace) and select your application.
Example service flow:
Example CPU consumption:
Example response time analysis:
OneAgent updates are performed automatically with the JDK.
Following a OneAgent update, you need to restart or redeploy your applications for them to be monitored with a new OneAgent version. This is because some components of OneAgent keep running in processes that are monitored by Dynatrace.