Chapter 8. Logging and Monitoring
In this chapter, we will cover the following topics:
- Collecting application logs
- Working with Kubernetes logs
- Working with etcd log
- Monitoring master and node
Introduction
As DevOps, logging and monitoring are what we always keep in mind. These tell us the stability and the status of our systems. For taking care of logs, you will learn how to collect the application logs inside Kubernetes. You will also learn how to collect and inspect the logs for Kubernetes. Finally, we will go through setting up monitoring systems for Kubernetes.
Collecting application logs
When you start managing the application, the log collection and analysis are two of the important routines to keep tracking the application's status.
However, there are some difficulties when the application is managed by Docker/Kubernetes; because the log files are inside the container, it is not easy to access them from outside the container. In addition, if the application has many pods...