In this chapter, we will be taking a look at the following recipes:
Monitoring and backups are important aspects of any mission-critical software in production. Monitoring proactively lets us take actions whenever any abnormal event occurs in the system, which can compromise the data consistency, availability, or the performance of the system. Issues might come to light after having a significant impact in the absence of proactive monitoring of the systems. We covered administration-related recipes in Chapter 4, Administration, and both monitoring and backup activities are part of it. However, they demand a separate chapter, as the content to be covered is extensive. In this chapter, we will see how to monitor various parameters and set up alerts for various parameters of your MongoDB cluster, using the MongoDB Monitoring Service (MMS). We will look at some mechanisms to back up the data using the out-of-the-box tools provided and also using the MMS backup service.