Set up Dynatrace on container and PaaS platforms

The method you choose to monitor containers with Dynatrace depends on the following:

  • The type of container runtime, such as Docker, containerd, or CRI-O
  • The orchestration platform, such as Kubernetes, OpenShift, Cloud Foundry, or Fargate
  • The level of access you have to the underlying host

See below for details.

Full-stack injection

The most comprehensive option for monitoring containers with Dynatrace is to deploy OneAgent to your container platform, which gives you full-stack visibility into your complete containerized environment.

This assumes full access to the underlying host.

For most OneAgent deployments and Container runtimes, injection will be performed by the oneagenthelper process that runs as part of the OneAgent service on the host or within the OA container. However some runtimes will start the OneAgentHelper process directly or need assistance from the OneAgent’s process auto injection logic.

If you continue to see the oneagenthelper processes active on your hosts even after stopping the OneAgent Service, you may need to disable Automatic injection as outlined within our documentation here before stopping the oneagent service / container: Infrastructure and Discovery monitoring modes or ensure that you using OneAgent version 1.281+ within your Classic Full Stack deployment: OneAgent release notes version 1.281.

Cloud Foundry

Dynatrace supports full-stack monitoring for Cloud Foundry through the Dynatrace OneAgent BOSH Release.

See Set up Dynatrace on Cloud Foundry.

Docker outside container platform

You can deploy OneAgent directly on the Docker host or you can run OneAgent as a Docker container.

Heroku

Dynatrace supports full-stack monitoring for Heroku through the Dynatrace Heroku buildpack.

See Set up Dynatrace on Heroku.

Application-only injection

Use application-only injection if you don't have access to underlying hosts. Your options depend on the container platform you are using.

Automated injection

The most efficient option is automated application-only injection for Kubernetes-based platforms. This injects OneAgent code modules using Kubernetes-native admission controllers.

Runtime injection

Inject OneAgent code modules into a container as it is deployed.

Build-time injection

Inject OneAgent code modules into a container as it builds.