Technical requirements
I created an application that we’ll optimize during this chapter. This application provides some RESTful APIs to manage football data. The application uses PostgreSQL as a data repository. You can find it on https://github.com/PacktPublishing/Spring-Boot-3.0-Cookbook/, in the chapter7/football
folder. This application is already configured for observability, exposing a Prometheus endpoint with Actuator. To monitor the application, you can use Prometheus and Grafana.
Prometheus configuration
You will need to configure Prometheus, as explained in the Integrating your application with Prometheus and Grafana recipe in Chapter 3. I have already prepared the prometheus.yml
file. You will need to get the IP address of your computer and set the value in the prometheus.yml
file.
I created a Grafana dashboard to monitor the application’s performance. To make it, I used the following dashboard as a starting point and adapted it for our purposes: https...