MongoDB Database Metrics & Monitoring
Learn the basics of monitoring MongoDB Atlas and self-managed deployments.
MongoDB Database Metrics & Monitoring
Unit Overview
In this unit, you'll explore different metrics used to monitor MongoDB. Then, you will visualize those metrics by using the native MongoDB Atlas dashboard. You will also look at third-party integrations for collecting and visualizing MongoDB Atlas metrics. Lastly, you'll apply what you've learned about monitoring to a self-managed deployment.
Prerequisites
Lessons in This Unit
- Lesson 1 – Core Metrics
- Lesson 2 – More Metrics
- Lesson 3 – Monitoring M10+
- Lesson 4 – Configure Alerts
- Lesson 5 – Respond to Alerts
- Lesson 6 – Integrations
- Lesson 7 – Self-Managed Monitoring
- Lesson 8 – Command Line Metrics
-
01.
-
02.Lesson 2: More Metrics
- Learn
- Practice
-
03.Lesson 3: Monitoring M10+
- Learn
- Practice
-
04.Lesson 4: Configure Alerts
- Learn
- Practice
-
05.Lesson 5: Respond to Alerts
- Learn
- Practice
-
06.Lesson 6: Integrations
- Learn
- Practice
-
07.Lesson 7: Self-Managed Monitoring
- Learn
- Practice
-
08.Lesson 8: Command Line Metrics
- Learn
- Practice
-
09.Conclusion
- Learn
Sarah Evans | Senior Curriculum Engineer
Sarah is a Senior Curriculum Engineer on the Curriculum team at MongoDB. Prior to MongoDB, Sarah was a Curriculum Engineer on the Coding team at Trilogy | 2U, where she contributed to Full-Stack and Advanced Front-End courses. Sarah has a MAT degree from Columbia University Teachers College and studied Software Engineering at Flatiron School in Chicago, IL.
Luke Phillippi | Senior Technologist
Luke is a Senior Technologist on the Curriculum team at MongoDB. Before joining the Curriculum team, Luke worked on the Technical Services team, where he provided support to MongoDB Atlas users. Luke has also worked in technical roles at a handful of startups and at investment banks on Wall Street. Luke has a degree in Engineering Management from Stevens Institute of Technology in Hoboken, NJ.
Vick Mena | Director, Curriculum
My name is Vick and I've been in the wild for over 25 years. I grew up at IBM working on the BIOS for the IBM eServer line in Austin, TX before moving to Wall St. I've worked on all phases of software development from low-level to middleware to UI but feel most comfortable in the middle. I also drank the devops kool-aid having moved a product line to AWS while at Dow Jones & Co with the help of an amazing team. I then pivoted into the secure space and worked on software/hardware reverse engineering. I always thought I'd eventually teach and this role lets me leverage all of my experience to lead this motley crew of passionate educators.
Welcome to this unit on Monitoring your MongoDB Database.
Operating a MongoDB cluster without monitoring is like flying a plane without an instrument panel.
Imagine having no way to proactively track the health and status of the airplane while you’re in flight!
If something did go wrong, you would have no way to diagnose the problem or solve it.
Luckily, MongoDB provides a number of monitoring tools and 3rd-party integrations that can help with proactive and real-time monitoring and diagnostics.
In this unit, you’ll learn how to monitor your deployment using monitoring tools available with the MongoDB Atlas UI, the Atlas CLI, and 3rd party integrations.
My name is <> and I’ll be your guide throughout this unit.
Continuing with our airplane analogy, having an instrument panel is essential to operating an airplane, but if you don’t understand which metrics to track on your panel or what they mean, it is not very useful.
MongoDB provides a rich set of metrics to help us monitor and manage a deployment.
We’ll start by examining some of these metrics in order to learn which metrics to monitor, what they can tell us about a deployment, and what to watch for.
After you learn about common metrics and what they mean, you’ll learn how to use the MongoDB Atlas UI and the Atlas CLI to view those metrics for an M10 and above cluster.
We’ll take a look at the Real-Time Performance and Metrics panels in the Atlas UI, and then see some of those using the Atlas CLI.
Next, you’ll learn how to use Alerts, another tool available through MongoDB Atlas.
We can think of Atlas alerts as the little red light that starts flashing on an instrument panel when a metric changes and requires our attention.
First, we’ll take a look at the default settings for these alerts and how to configure them with the Atlas UI and the Atlas CLI.
Then, we’ll go over how to respond and acknowledge them with the Atlas UI and the Atlas CLI.
Next, we’ll go over some 3rd-party tools and integrations that can be used to monitor your MongoDB deployments.
While MongoDB offers a number of in-house options to help you monitor your deployment, it is also easy to integrate with 3rd-party tools.
To demonstrate, we’ll use the Prometheus Atlas integration in order to visualize metrics from an M10 cluster using the Grafana open source dashboard.
Then, we’ll show you how to take that same Prometheus and Grafana setup to monitor a self-managed deployment!
You’ll learn how to install the Percona MongoDB exporter tool on Ubuntu Linux, configure it as a Prometheus target, and make database metrics available to Grafana.
Finally, we are going to take a quick look behind the scenes to learn how both MongoDB and 3rd-party tools actually retrieve metrics from your MongoDB deployments.
We’ll take a look at a few of the database commands that are used to collect metrics and you’ll learn how to manually run them from the command line.
Throughout this unit, you'll have plenty of opportunities to practice what you learned by completing labs and quizzes that present real-world scenarios. This way, you'll build your knowledge and get comfortable with the software at the same time.
By the time you’re done, you’ll have your instrument panel up and running and you’ll be ready to safely fly that plane.
Let’s get started!