Dynatrace Operator version 1.0.0+
This guide describes the steps required to migrate your Dynatrace deployment from cloud native full stack to the application monitoring mode.
To only monitor selected applications on Kubernetes, application monitoring offers a flexible approach with the following benefits:
This section provides all the information needed to perform the migration from cloud native full stack to application monitoring mode.
Reconfigure (existing) DynaKube for application monitoring mode:
The following side-by-side comparison outlines how to reconfigure a DynaKube CR from cloud native full stack to application monitoring:
apiVersion: dynatrace.com/v1beta2kind: DynaKubemetadata:name: dynakubenamespace: dynatracespec:apiUrl: https://<environment-id>.live.dynatrace.com/apinetworkZone: <network-zone>oneAgent:cloudNativeFullStack:args:- "--set-host-group=<host-group>"activeGate:capabilities:- routing- kubernetes-monitoring- dynatrace-api
For further information on how to configure DynaKube for application monitoring mode, visit the deployment guide or DynaKube parameters. Alternatively, download the DynaKube custom resource sample for application monitoring from GitHub and adapt the DynaKube custom resource according to your requirements.
Apply the DynaKube custom resource:
Run the command below to apply the DynaKube custom resource. A validation webhook will provide helpful error messages if there's a problem.
kubectl apply -f dynakube.yaml
This action will lead to the removal of OneAgents in cloud native full stack mode and subsequently result in the termination of deep monitoring for application pods shortly thereafter.
Restart application workloads:
Restart all application workloads promptly to trigger OneAgent injection and enable deep monitoring minimizing monitoring outages.
The migration impacts several Kubernetes resources, altering their functions or introducing new components to support the application monitoring monitoring mode. Key changes include:
Component
Cloud native full stack
Application monitoring
Dynatrace OneAgent
Dynatrace Webhook Server
required
optional