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.
Shipping an application to the production requires reliable mechanisms responsible for auditing, health checks, and metrics collection. Fortunately, with Spring Boot we can apply those features effortlessly and monitor an app with Actuator.
Gather metrics and statistics from Elastic Stack with Metricbeat and monitor the services using a Kibana dashboard.
When you use Metricbeat to monitor your Elastic Stack, you may notice in your Kibana dashboard the Standalone cluster. It contains metrics, usually taken from Filebeat or Logstash, that belongs to a different cluster.
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.
Kibana allows us to browse data indexed in Elasticsearch nodes. We’re going to run Kibana in a Docker container and set up its configuration so it displays logs from our example Spring Boot app.
We don’t need to have an immense adventure ahead of us to value ordinary tasks and small steps that enable our growth.
Why should we learn how to process application logs with Elastic Stack? After all, the default logging mechanism in Spring Boot allows us to start working on our POC in no time. However, we must be aware that inadequate logging makes debugging and monitoring difficult in a production environment.
The understanding of a project changes through time as its development continues. Following an obsolete specification, creating only a superficial domain model or coming up with shady half-measures – to avoid any profound effort – won’t stop you from delivering an app, but most definitely it won’t be the app that was needed.