Application Monitoring in one place allows you to see your application performance trends at a glance from page load times to error rates, slow transactions, and a list of servers running the app.
Setup AWS EC2-Instance:
Step 1: Launch an instance
From the console dashboard, choose Launch Instance
2. The Choose an Amazon Machine Image (AMI) page displays a list of basic configurations, called Amazon Machine Images (AMIs), that serve as templates for your instance.
This article would demonstrate how a Spring Boot web application can be monitored using Micrometer which exposes metrics from our application, Prometheus which stores the metric data, and Grafana to visualize the data in graphs. Implementing these tools can be done quite easily by adding just a few configurations. In addition to the default JVM metrics we will see how we can expose custom metrics such as user counter(No. of times user access the API ).
Step 1: Spring Boot application pom entries for Prometheus and Grafana.
First we have to add our micrometer…