Deploy OneAgent on Kubernetes for application-only monitoring

To deploy OneAgent on Kubernetes for application-only monitoring, read the instructions provided below.

Before you begin

You'll need to

Generate PaaS token

The first step is to get your environment ID and PaaS token for your Dynatrace environment.

Integrate OneAgent into your application

The following steps explain how to integrate OneAgent with Kubernetes applications.

You have two integration options:

  • Integrate at container build time.
  • OneAgent v1.149 and later Integrate at container run time.

The build time integration consists of two steps:

  1. Integrate OneAgent to the application image.
  2. Build the application image.

Integrate OneAgent into the application image

Build your application image

Build the Docker image from your Dockerfile to use it in your Kubernetes environment:

$ docker build -t yourapp .

Note: You can monitor your application containers with a different Dynatrace environment. To do this, read the instructions below: