One key Dynatrace advantage is ease of activation. OneAgent technology simplifies deployment across large enterprises and relieves engineers of the burden of instrumenting their applications by hand. As Kubernetes adoption continues to grow, it becomes more important than ever to simplify the activation of observability across workloads without sacrificing the deployment automation that Kubernetes provides. Observability should be as cloud-native as Kubernetes itself.
In our workshop, we will install the Dynatrace Operator that streamlines lifecycle management. You can read more about it here in this Dynatrace blog.
Organizations will often customize the Dynatrace Operator installation and you can read more about the options in the Dynatrace docs but, we are going to use a single command that we can get from the Dynatrace interface to show how easy it is to get started.
To navigate to Kubernetes page, follow these steps and refer to the picture below:
Deploy Dynatrace
menuStart Installation
buttonKubernetes
buttonTo get the Dynatrace Operator installation command, refer to the steps and pictures below:
dynatrace-workshop
for the name. This is not the cluster name, it will show up as the Kubernetes page name in DynatraceCreate tokens
buttonSkip SSL Certificate Check
to be ONCopy
buttonPaste the command in SSH Shell and run it. When you run the command, it will do the following:
dynatrace
in your cluster containing the Dynatrace Operator supporting podsdynatrace
namespace that is used in the polling of Kubernetes APIOnce the script is complete, then monitor the installation until you all pods are in Running
state with all pods as 1/1
.
kubectl -n dynatrace get pods
Rerun the command until the output looks like this:
NAME READY STATUS RESTARTS AGE
dynakube-classic-g5n9d 1/1 Running 0 2m45s
dynakube-classic-vr5qh 1/1 Running 0 2m45s
dynakube-kubemon-0 1/1 Running 0 2m43s
dynakube-routing-0 1/1 Running 0 2m45s
dynatrace-operator-f946fb4c6-q5k5g 1/1 Running 0 3m59s
We will review more detail shortly, but quickly verify within Dynatrace that the hosts are now monitored.
From the left-side menu in Dynatrace choose Hosts
. Ensure the management zone
filter is set to all ALL
You should see the two hosts like the ones shown below in addition to the host with the name dt-orders-monolith
.