Including Grafana in a monitoring stack allows us to effectively keep an eye on an application status. Project monitoring becomes much easier once we add an advanced analysing platform to display collected data in a rich set of charts. We can easily set up Grafana on our development environment using Docker Compose to test the tool.
SonarQube is a well known, high quality tool utilized by many prominent companies such as Audible, Porsche, Bosch, and HP for advanced code analysis. However, you can easily use it for free to see what can be done to improve project security and reduce maintenance costs. One way to do that is to install a local copy on your development environment.
Prometheus is an open-source platform used to collect metrics from applications. You can easily apply it to monitor your Spring Boot project and scrape the Actuator /prometheus endpoint.
For development purposes, you can easily run Spring Boot apps with Docker Compose.
We can set up the order of service startup and shutdown using the depends_on option. However, it won’t make a Docker container wait for another one to be ready. There are many situations when we need to be sure that the container on which our service depends is actually running.
Having a ready to use database instance that every programmer can quickly run on their machine can save a lot of time. In this article you will learn how to set up a PostgreSQL database in a Docker container.