Introduction
Monitoring and backup is an important aspect of any mission-critical software in production. Monitoring proactively lets us take action whenever an abnormal event occurs in the system that can compromise data consistency, availability, or the performance of the system. Issues may come to light after having a significant impact in the absence of monitoring the systems proactively. We covered administration-related recipes in Chapter 4, Administration, and both these 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 Mongo Monitoring Service (MMS). We will look at some mechanisms to backup data using the out-of-the-box tools and also using the MMS backup service.