Monitoring Kubernetes environments with Elastic Agent
In this recipe, we’ll focus on implementing infrastructure monitoring within a Kubernetes environment where our application, instrumented with OpenTelemetry, is running. Our objective is to collect logs from containers and infrastructure metrics to gain insights into both application performance and the health of the underlying infrastructure. To accomplish this, we will install and configure an Elastic Agent with the Kubernetes integration. This agent will be tasked with collecting Kubernetes monitoring data and forwarding it to our Elastic Stack deployment. Once the data is gathered and transmitted, we will utilize the preconfigured Kubernetes dashboards provided by Elastic to better understand our environment.
Getting ready
Make sure that you’ve followed all the steps in the previous recipe, Instrumenting and monitoring with OpenTelemetry.
The snippets for this recipe can be found at the following link...