14 Observability and monitoring

 

This chapter covers:

  • Logging with Spring Boot, Loki, and Fluent Bit
  • Using health probes with Spring Boot Actuator and Kubernetes
  • Defining metrics and monitoring with Spring Boot Actuator, Prometheus, and Grafana
  • Configuring distributed tracing with Spring Cloud Sleuth and Tempo
  • Managing applications with Spring Boot Actuator

In the previous chapter, you learned how to configure cloud native applications using Spring and Kubernetes. We’re very close to deploying Polar Bookshop in production, but there’s still one important aspect to cover first. Before going to production, we should ensure our applications are observable and that the platform we use provides all the tools needed to monitor and gain visibility into the system.

Monitoring is about checking the telemetry available for the application and defining alerts for known failure states. Observability goes beyond that and aims at reaching a state where we can ask any arbitrary question about the system without knowing the question in advance. The product team should ensure their applications expose relevant information. The platform team should provide an infrastructure to consume that information and ask questions about their operations.

14.1 Logging with Spring Boot, Loki, and Fluent Bit

 
 

14.1.1 Logging with Spring Boot

 
 

14.1.2 Managing logs with Loki, Fluent Bit, and Grafana

 
 
 

14.2 Health probes with Spring Boot Actuator and Kubernetes

 
 
 
 

14.2.1 Defining health probes for Spring Boot applications using Actuator

 
 
 

14.2.2 Configuring health probes in Spring Boot and Kubernetes

 
 

14.3 Metrics and monitoring with Spring Boot Actuator, Prometheus, and Grafana

 

14.3.1 Configuring metrics with Spring Boot Actuator and Micrometer

 
 

14.3.2 Monitoring metrics with Prometheus and Grafana

 
 

14.3.3 Configuring Prometheus metrics in Kubernetes

 

14.4 Distributed tracing with Spring Cloud Sleuth and Tempo

 
 
 

14.4.1 Configuring distributed tracing with Spring Cloud Sleuth

 
 
 

14.4.2 Managing and monitoring traces with Tempo and Grafana

 
 

14.5 Application management and monitoring with Spring Boot Actuator

 
 

14.5.1 Monitoring Flyway migrations in Spring Boot

 

14.5.2 Generating application build information

 
 
 
 

14.6 Summary

 
 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest