In this chapter, we learned how to work with logs and metrics, as well as how to set up logs and send them to a centralized container using the syslog protocol. We described how to add logs to different applications, how to include a request ID, and how to raise custom logs from the different microservices. Then, we learned how to define a strategy to ensure that the logs are useful in production.
We also described how to set up standard and custom Prometheus metrics in all the microservices. We started a Prometheus server and configured it so that it collects metrics from our services. We started a Grafana service so that we can plot the metrics and created dashboards so that we can display the status of the cluster and the different services that are running.
Then, we introduced you to the alert system in Prometheus and how it can be used so that it notifies us of problems...