Integrating your application with Prometheus and Grafana
You have a successful Football Trading application, and you can observe it by calling the various Actuator endpoints. However, this way of observing the application is too manual. So, you want a system that allows you to automate how your application is monitored.
In this recipe, you will learn how to expose the metrics of your application using a format that can be used by Prometheus, after which you will use the Prometheus data as a source for Grafana. Prometheus is an open source monitoring solution that collects and aggregates metrics as time series data, then stores the events in real time so that the events can be used to monitor your application. Grafana is an open source tool for visualization that allows you to create custom dashboards, graphs, and even alerts. One of the sources Grafana can use is the data collected by Prometheus. The combination of both tools is a very popular choice due to its ease of use, flexibility...