Introduction
Monitoring is perhaps one of the most crucial components of any production system. Keeping a close watch on the important metrics and signals emitted by a system can help gain wonderful insights into the system's usage and behavior. It can help you debug issues, identify and optimize bottlenecks, and avoid catastrophic failures. Thankfully, MongoDB comes bundled with useful tools and commands that help us monitor its health and take appropriate measures to ensure its optimal utilization. In this chapter, we will look at various tools such as mongostat
and mongotop
, work with database commands that give extremely useful metrics, monitor operating system subsystems, and monitor backups.
Let's get started!