Distributed monitoring in Micronaut microservices
Monitoring is simply recording the key performance metrics to enhance visibility into the application state. By recording and surfacing the system performance metrics such as CPU usage, thread pools, memory usage, and database connections for all the distributed components, it can provide a holistic picture of how a microservice system is performing at a given point in time. The distributed nature of microservices requires a shift in how the system is monitored. Instead of relying on the host environment monitoring tools, we need a unified monitoring solution that can combine performance metrics from various services and present a one-stop interface. In this section, we will explore how to implement such a distributed monitoring solution for the pet-clinic
application.
To implement distributed monitoring, we will use a very popular stack of Prometheus and Grafana. Let's look at our system components for distributed monitoring...