Monitor Kubernetes cluster utilization
- Make sure monitoring is enabled on your cluster.
- In the Dynatrace menu, go to Kubernetes.
- Look for your Kubernetes cluster, and then select Actions > Settings.
- Turn on Enabled.
- Select Save changes.
After enabling access to the Kubernetes overview page for a specific Kubernetes cluster, the specific cluster will appear on the Kubernetes page. The Kubernetes page provides an overview of all Kubernetes clusters showing monitoring data like the clusters’ sizing and utilization.
To access this page, select Kubernetes from the navigation menu.
Utilization of cluster resources over time
As Kubernetes can run any containerized workloads and allow for horizontal pod autoscaling, the actual utilization of cluster resources will likely be very volatile. That is why Dynatrace offers a single pane of glass for the most important utilization and performance metrics on a cluster level. These metrics are:
- Actual CPU/Memory usage of cluster nodes (Min, Max, Median)
- Total of CPU/Memory requests of containers running on cluster nodes (Min, Max, Median)
- Total of CPU/Memory limits of containers running on cluster nodes (Min, Max, Median)—limits might be overcommitted, ie. over 100 %.
- Available CPU/Memory resources for running additional pods/workloads on cluster nodes (Min, Max, Median)
- Total CPU that can be allocated for pods (since a part of CPU is typically reserved by the system)
- Max Memory that can be allocated for pods
In the sample screenshot, the cluster has a total of 3.76 CPUs, where 1.55 are allocated through container CPU requests and 2.21 CPUs are still available for running further containers. The chart shows that there's at least one node with a CPU usage of 25.6% and the least utilized node has a CPU usage of 10.5%.
View available resources on your Kubernetes nodes
You can get detailed insights of the Kubernetes node metrics on a per-node level to understand how individual nodes are utilized. The Node analysis page also provides information about how much workload can still be deployed on nodes (i.e., metrics CPU/Memory available).
View host allows you to jump to the host details page to obtain code-level insights into currently deployed containers, all the relevant and cloud-specific host properties, and Kubernetes node labels.